/* hiro section */
.wrapper-hiro {
  width: 100%;
  position: relative;
  overflow: hidden;
}
.bglight {
  position: absolute;
  width: 100%;
  top: -15%;
  right: 0;
  height: auto;
}
.hiro-section {
  position: relative;
  width: 80%;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding-top: 10%;
  padding-bottom: 13%;
  z-index: 10;
}
.hiro-left {
  width: 45%;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.divider {
  width: 100%;
  min-height: 1px;
  background-color: #1b1a44;
}
.hiro-left h1 {
  font-size: 60px;
  margin: 0;
  font-weight: 800;
}
.hiro-left span {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5rem;
}
.btn-hiro {
  margin: 5% 0;
  display: flex;
  flex-direction: row;
  gap: 5%;
}
.btn-hiro a {
  padding: 10px 30px;
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
}
.btn-hiro-r {
  border-radius: 55px;
  background-color: #1b1a44;
}
.hiro-right {
  width: 40%;
}
.hiro-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px 0;
}
.hiro-card-title {
  display: flex;
  color: var(--text);
  justify-content: center;
  align-items: center;
  gap: 5%;
}
.hiro-card-title h2 {
  font-size: 60px;
  margin: 0;
  font-weight: 900;
}
.hiro-card-details {
  display: flex;
  gap: 5%;
  align-items: center;
  color: #62e99e;
  font-size: 26px;
  font-weight: 600;
}
.hiro-card-details span {
  color: var(--text);
  font-size: 70px;
  font-weight: 500;
}
.hiro-card-detail {
  width: 50%;
  background-color: rgba(27, 26, 68, 0.8);
  border-radius: 10px;
  color: #454397;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5%;
  padding: 7px;
  margin-top: 10px;
}
.hiro-card-detail span {
  font-size: 12px;
  font-weight: 400;
}

/* table rate */

.tc{
  width: 80%;
  margin: 0 auto;
  padding: 40px;
}

.tc__head{
  display: flex;
  align-items: center;
  gap: 14px;
}

.tc__title{
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
}

.tc__search{
  flex: 1;
  display: flex;
  justify-content: center;
}

.tc__searchInput{
  width: min(560px, 100%);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  outline: none;
}

.tc__searchInput::placeholder{
  color: rgba(255,255,255,0.45);
}

.tc__refresh{
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: var(--primary-color, #F76C01);
  cursor: pointer;
}
.tc-sort{
  display: flex;
  color: var(--text);
  align-items: center;
  gap: 10px;
}
.tc__tableWrap{
  margin-top: 14px;
  overflow-x: auto;
}

.tc__table{
  width: 100%;
  min-width: 820px;
  border-collapse: separate;
  border-spacing: 0 10px; /* فاصله بین ردیف‌ها */
}

.tc__th{
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  padding: 8px 14px;
}

.tc__th--amount,
.tc__td--amount{
  text-align: left;
  width: 140px;
}

.tc__th--pct,
.tc__td--pct{
  text-align: center;
  width: 110px;
}

.tc__row{
  background: rgba(255,255,255,0.04);
  transition: background .2s ease;
}

.tc__row:hover{
  background: rgba(255,255,255,0.07);
}

.tc__td{
  padding: 14px;
  color: #fff;
  vertical-align: middle;
}

.tc__row td:first-child{
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px;
}
.tc__row td:last-child{
  border-top-right-radius: 14px;
  border-bottom-right-radius: 14px;
}

.tc__currency{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.tc__flag{
  width: 42px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(255,255,255,0.06);
}

.tc__code{
  font-weight: 800;
  letter-spacing: .2px;
}

.tc__name{
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  margin-top: 2px;
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pct-up{ color: #27e28a; font-weight: 800; }
.pct-down{ color: #ff4d4f; font-weight: 800; }
.pct-zero{ color: rgba(255,255,255,0.6); font-weight: 800; }

.tc__footer{
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.tc__cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: 999px;
  padding: 14px 18px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
}

/* convert */
/* ===== Quick Convert ===== */
.qc{
  
  width: 80%;
  margin: 70px auto;
}

.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: .3px;
  margin-right: auto;
}

.qc__chev{
  opacity: .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 .25s ease, opacity .25s ease;
}

.qc__swap:hover{
  transform: rotate(180deg);
  opacity: .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.10);
  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.10);
  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: .3px;
}

.cp__name{
  font-size: 12px;
  color: rgba(255,255,255,0.60);
  margin-top: 3px;
}

.cp__empty{
  padding: 16px;
  text-align: center;
  color: rgba(255,255,255,0.6);
}

/* ===== Why Choose Us ===== */

.why{
    width: 80%;
    margin: 50px auto;
    display: flex;
    flex-direction: row;
    color: var(--text);
    font-size: 30px;
    font-weight: 600;
    align-items: center;
    justify-content: space-between;
    row-gap: 70px;
    flex-wrap: wrap;
   
}
.wrapper-bg{
 position: relative;
    overflow: hidden;
}
.why-bgimg{
position: absolute;
  width: 100%;
  top: -15%;
  right: 0;
  height: auto;
}
.why-bgimg{
  opacity: 27%;
}
.why-title{
width: 100%;
text-align: center;

}
.article{
    width: 30%;
    border: 1px solid #1B1A44;
    position: relative;
    padding: 40px;
}
.article-number{
    position: absolute;
    left: 10%;
    top: -10%;
    width: 90px;
    height: 140px;
}
.article-icon{
    display: flex;
    justify-content: end;
}
.article-details h3{
font-size: 30px;
font-weight: 600;
margin-bottom: 20px;
}
.article-details p{
font-size: 20px;
font-weight: 100;
}

/* services */

.services{
    width: 80%;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    color: var(--text);
    font-size: 30px;
    font-weight: 600;
    text-align: center;
    row-gap: 20px;
}
.service{
    width: 100%;

    padding: 30px 30px;
    border: 1px solid #1B1A44;
}
.service-wrapper{
    display: flex;
    justify-content: start;
    column-gap: 40px;
}
.service-icon{
    background-color: #9A99DA1C;
    width:20%;
    border: 1px solid #1B1A44;
    border-radius: 50px;
    padding: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.service-details{
    width: 60%;
    text-align: start;
}
.service-details h3{
    font-size: 40px;
    font-weight: 600;
}
.service-details p{
    font-size: 20px;
    font-weight: 300;
}
.service-cta{
    display: flex;
    justify-content: end;
    padding-right: 20px;
}
.service-cta a {
    font-size: 18px;
    font-weight: 600;
    padding: 10px 20px;
}













/* ریسپانسیو */
@media (max-width: 992px){
  .qc__row{
    grid-template-columns: 1fr;
  }
  .qc__swap{
    width: 52px;
    height: 52px;
    margin: 0 auto;
  }
}

/* (اختیاری) اگر کلاس گرادینت دکمه رو نداری */
.btn-primary-gradient{
  background: var(--primary-gradient, linear-gradient(to bottom right, #F76C01,#F98921));
}












/* responsive */
@media (max-width: 769px) {
    .hiro-section{
        width: 90%;
        gap: 30px;
    }
  .hiro-left h1 {
    font-size: 30px;
  }
  .hiro-left span {
    font-size: 10px;
  }
  .btn-hiro a {
    padding: 5px 15px;
    font-size: 12px;
  }
  .hiro-card-title h2 {
    font-size: 45px;
  }
  .hiro-card-detail{
    width: 53%;
  }
  .hiro-card-details span {
    font-size: 50px;
  }
  .hiro-card-details {
    font-size: 20px;
  }
  .hiro-card-detail span {
    font-size: 8px;
  }
  .hiro-right {
    width: 45%;
  }
  .tc{
    width: 90%;
  }
  .qc{
  
  width: 90%;
 
}
.why{
    font-size: 25px;
        row-gap: 50px;

}
.why-bgimg{
top: 25%;
opacity: 40%;
}
.article{
    width: 45%;
}
.article-number{
    width: 55px;
    height: 90px;
   left: 15%;
        top: -10%;
}
.article-icon img{
    width: 60px;
    height: 60px;
}
.article-details h3{
    font-size: 20px;
}
.article-details p{
    font-size: 12px;
}
.services{
    width: 90%;
}
.service-icon img {
    width: 60px;
    height: 60px;
}
.service-details h3{
font-size: 26px;
}
.service-details p{
    font-size: 12px;
}
.service-details{
    display: flex;
    flex-direction: column;
    row-gap: 15px;
}





}
@media (max-width: 430px){
       .hiro-section{
        width: 95%;
    }
 .hiro-section{
    flex-direction: column-reverse;
 }
 .hiro-left{
    width: 100%;
 }
 .hiro-right{
    width: 80%;
 }
 .btn-hiro{
    justify-content: center;
 }
 .hiro-left{
    justify-content: center;
 }
 .hiro-left h1{
    font-size: 26px;
    text-align: center;
 }
 .hiro-left span{
    text-align: center;
    width: 80%;
    margin: 0 auto;
    
 }
 .bglight{
    top: 20%;
 }
 .btn-hiro a{
    padding: 10px 15px;
 }
   .tc{
    width: 95%;
  }
  .tc__head{
    flex-wrap: wrap;
  }
   .qc{
  
  width: 95%;
 
}
.article{
    width: 100%;
}
.why{
    width: 95%;
}
.why-bgimg{
top: 30%;
opacity: 50%;
}
.service-wrapper{
    flex-direction: column;
   row-gap: 20px;
}
.service-icon{
    width: 40%;
}
.service-details{
    width: 100%;
}
.service-cta{
    margin-top: 30px;
}
}