.currency-card {
  background: #e0f0ff;
  padding: 20px;
  border-radius: 16px;
  margin-bottom: 40px;
}

.currency-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.currency-item {
  flex: 1 1 200px;
  background: #fff;
  border-radius: 16px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #000; /* تأكيد على اللون الأسود للنص */
}

.currency-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.currency-flag {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
}

.currency-name {
  font-weight: 600;
  font-size: 16px;
  color: #000 !important;
}

.currency-rates {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
  width: 100%;
}

.rate-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  direction: ltr;
}

html[dir="rtl"] .rate-block {
  flex-direction: row-reverse;
  direction: rtl;
}

.rate-btn {
  border: none;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
  cursor: default;
  font-size: 13px;
  white-space: nowrap;
  color: #fff !important; /* الزر فقط أبيض */
}

.rate-btn.buy {
  background: #28a745;
}

.rate-btn.sell {
  background: #dc3545;
}

.rate-value {
  font-weight: 600;
  font-size: 14px;
  color: #000 !important; /* السعر بالأسود */
}

.rate-value.small {
  font-size: 13px;
}

.currency-change {
  font-size: 12px;
  font-weight: 600;
}

.currency-change.up {
  color: #28a745 !important;
}

.currency-change.down {
  color: #dc3545 !important;
}

@media (max-width: 991px) {
  .currency-list {
    flex-direction: column;
    align-items: center;
  }

  .currency-item {
    width: 80%;
  }
}
