.hiro {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
    position: relative;
  z-index: 10;
}
.hiro-light {
  position: absolute;
  width: 100%;
  top: -50%;
  right: 0;
  height: auto;
}

/* quick convert */
.qc {
  width: 80%;
  margin: 70px auto;
  position: relative;
  z-index: 10;
}

.qc__title {
  text-align: center;
  color: #fff;
  font-weight: 800;
  font-size: 26px;
  margin: 0 0 18px;
}

.qc__card {
  border-radius: 36px;
  padding: 26px;
  background: rgba(10, 9, 38, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.qc__row {
  display: grid;
  grid-template-columns: 1fr 64px 1fr 1.2fr;
  gap: 18px;
  align-items: center;
}

.qc__field {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 14px 18px;
}

.qc__label {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 8px;
}

.qc__select {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0;
}

.qc__flag {
  width: 34px;
  height: 24px;
  border-radius: 6px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
}

.qc__code {
  font-weight: 800;
  letter-spacing: 0.3px;
  margin-right: auto;
}

.qc__chev {
  opacity: 0.7;
}

.qc__swap {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: none;
  background: var(
    --primary-gradient,
    linear-gradient(to bottom right, #f76c01, #f98921)
  );
  color: #fff;
  font-size: 18px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.qc__swap:hover {
  transform: rotate(180deg);
  opacity: 0.95;
}

.qc__input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.qc__cta {
  width: 100%;
  margin-top: 18px;
  border: none;
  border-radius: 999px;
  padding: 14px 18px;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.qc__result {
  margin-top: 20px;
  text-align: center;
  color: #62e99e;
  font-weight: 700;
}
/* ===== Currency Picker Modal ===== */
.cp {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.cp.is-open {
  display: block;
}

.cp__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.cp__modal {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, 92vw);
  max-height: 72vh;
  border-radius: 20px;
  overflow: hidden;

  background: rgba(10, 9, 38, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  box-shadow: 0 35px 120px rgba(0, 0, 0, 0.55);
}

.cp__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cp__title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

.cp__close {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
}

.cp__searchWrap {
  padding: 12px 16px;
}

.cp__search {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  outline: none;
}

.cp__search::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.cp__list {
  padding: 8px 8px 14px;
  overflow: auto;
  max-height: calc(72vh - 120px);
}

.cp__item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  color: #fff;
  text-align: left;
}

.cp__item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

.cp__flag {
  width: 38px;
  height: 26px;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
}

.cp__meta {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.cp__code {
  font-weight: 900;
  letter-spacing: 0.3px;
}

.cp__name {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 3px;
}

.cp__empty {
  padding: 16px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}
/* اگر کلاس گرادینت رو نداری */
.btn-primary-gradient {
  background: var(
    --primary-gradient,
    linear-gradient(to bottom right, #f76c01, #f98921)
  );
}
/* =========================
   Exchange Rate Tables (Converter page)
========================= */

.xr {
  padding: 26px 0 10px;
  width: 80%;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.xr__title {
  text-align: center;
  margin: 0 0 18px;
  color: #ffffff;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.2px;
}

.xr__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.xrCard {
  background: linear-gradient(180deg, rgba(20,24,55,0.9), rgba(10,12,28,0.95));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 22px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.45);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.xrCard__head {
  padding: 16px 16px 10px;
}

.xrCard__caption {
  margin: 0 0 10px;
  text-align: center;
  color: rgba(255,255,255,0.65);
  font-size: 12px;
}

.xrPair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.xrPair__side {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  min-width: 128px;
  justify-content: center;
}

.xrPair__sep {
  color: rgba(255,255,255,0.35);
  font-size: 14px;
}

.xrPair__flag {
  width: 28px;
  height: 18px;
  border-radius: 4px;
  object-fit: cover;
}

.xrPair__code {
  color: #ffffff;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.3px;
}

/* Table */
.xrCard__tableWrap {
  padding: 8px 14px 10px;
}

.xrTable {
  width: 100%;
  border-collapse: collapse;
}

.xrTable__row:nth-child(odd) .xrTable__td {
  background: rgba(255,255,255,0.04);
}

.xrTable__row:nth-child(even) .xrTable__td {
  background: rgba(255,255,255,0.02);
}

.xrTable__td {
  padding: 10px 12px;
  color: #ffffff;
  font-size: 12px;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.xrTable__td:first-child {
  width: 48%;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
}

.xrTable__td:last-child {
  width: 52%;
  text-align: right;
  color: rgba(255,255,255,0.9);
}

.xrTable__td--muted {
  text-align: center !important;
  color: rgba(255,255,255,0.55) !important;
  background: rgba(255,255,255,0.03) !important;
}

/* Highlight amounts (orange like screenshot) */
.xrTable__row .xrTable__td:first-child strong {
  color: #ff7a00;
}

/* Footer */
.xrCard__foot {
  padding: 10px 14px 14px;
  display: flex;
  justify-content: center;
}

.xrCard__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.35);
  font-size: 11px;
  letter-spacing: 0.2px;
}

.xrCard__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
}

/* Responsive */
@media (max-width: 900px) {
  .xr__grid {
    grid-template-columns: 1fr;
  }
  .xr{
    width: 90%;
  }
}






@media (max-width: 769px) {
  .qc {
    width: 90%;
  }
  .qc__row {
    grid-template-columns: 1fr;
  }
  .qc__swap {
    width: 52px;
    height: 52px;
    margin: 0 auto;
  }
  .hiro-light{
    top: -5%;
  }
}
@media (max-width: 430px) {
  .qc {
    width: 95%;
  }
    .xr{
    width: 95%;
  }
}
