.wrapper-hiro {
  width: 100%;
  position: relative;
  margin-top: -8%;
}
.hiro {
  width: 80%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 10;
}
.hiro-light {
  position: absolute;
  width: 100%;
  top: -15%;
  right: 0;
  height: auto;
}
.hiro-left {
  width: 40%;
  row-gap: 30px;
  display: flex;
  flex-direction: column;
}
.hiro-left h2 {
  color: var(--text);
  font-size: 40px;
  font-weight: 800;
}
.hiro-left span {
  color: var(--text);
  font-size: 20px;
  font-weight: 300;
  line-height: 2rem;
}
/* هیرو فقط برای وسط‌چین کردن کانتینر */
.hiro-right {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 70%;
}

/* ✅ این div کنترل همه‌چیزه (اندازه رو اینجا تنظیم کن) */
#three-wrap {
  width: 100%;
  height: 100vh;
  aspect-ratio: auto;
}

/* موبایل: بهتره مربع باشه */
@media (max-width: 480px) {
  #three-wrap {
    width: 100vw;
    aspect-ratio: 1 / 1;
    max-height: 70vh;
  }
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
}


/* =========================
   CARD
========================= */

.tc {
  padding: 40px 0;
  width: 80%;
  margin: 0 auto;
}

.tc__card {
  position: relative;
  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: 24px;
  padding: 28px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.45);
  backdrop-filter: blur(18px);
}

/* =========================
   HEADER
========================= */

.tc__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.tc__title {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.tc__subtitle {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin: 4px 0 0;
}

.tc__baseBtn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.2s ease;
}

.tc__baseBtn:hover {
  background: rgba(255,122,0,0.15);
  border-color: rgba(255,122,0,0.5);
}

.tc__baseIcon {
  font-weight: bold;
  color: #ff7a00;
}

.tc__baseCode {
  font-size: 13px;
  font-weight: 600;
}

/* =========================
   TOOLBAR
========================= */

.tc__toolbar {
  margin-bottom: 18px;
}

.tc__searchInput {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: #fff;
  font-size: 13px;
  outline: none;
}

.tc__searchInput:focus {
  border-color: rgba(255,122,0,0.6);
}

/* =========================
   TABLE
========================= */

.tc__tableWrap {
  
  overflow-y: auto;
}

.tc__table {
  width: 100%;
  border-collapse: collapse;
}

.tc__th {
  text-align: left;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.tc__td {
  padding: 14px 10px;
  font-size: 14px;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.tc__row {
  transition: background 0.2s ease;
}

.tc__row:hover {
  background: rgba(255,255,255,0.05);
}
.tc__baseFlag{
  width: 22px;
  height: 16px;
  border-radius: 4px;
  object-fit: cover;
}

/* Currency Cell */

.tc__currency {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tc__flag {
  width: 26px;
  height: 18px;
  object-fit: cover;
  border-radius: 4px;
}

.tc__code {
  font-weight: 600;
}

.tc__name {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
}

/* =========================
   PERCENT COLORS
========================= */

.pct-up {
  color: #22c55e;
  font-weight: 600;
}

.pct-down {
  color: #ef4444;
  font-weight: 600;
}

.pct-zero {
  color: rgba(255,255,255,0.5);
}

/* =========================
   FOOTER BUTTON
========================= */

.tc__footer {
  margin-top: 24px;
}

.tc__cta {
  display: block;
  text-align: center;
  padding: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff7a00, #ff9a3d);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: 0.25s ease;
}

.tc__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255,122,0,0.4);
}

/* =========================
   BASE PICKER MODAL
========================= */

.bp {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 999;
}

.bp.is-open {
  display: block;
}

.bp__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
}

.bp__panel {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 420px;
  max-height: 80vh;
  transform: translate(-50%, -50%);
  background: #111428;
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.bp__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.bp__title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.bp__hint {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  margin-top: 2px;
}

.bp__close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 18px;
  cursor: pointer;
}

.bp__search {
  width: 100%;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-size: 13px;
  margin-bottom: 12px;
  outline: none;
}

.bp__list {
  overflow-y: auto;
  flex: 1;
}

.bp__item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  color: #fff;
  transition: background 0.2s ease;
}

.bp__item:hover {
  background: rgba(255,255,255,0.06);
}

.bp__flag {
  width: 24px;
  height: 16px;
  border-radius: 3px;
  object-fit: cover;
}

.bp__code {
  font-weight: 600;
}

.bp__name {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
}




/* 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: .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);
}




/* cta */
.cta {
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.cta-light {
  position: absolute;
  width: 100%;
  top: -70%;
  right: 0;
  height: auto;
  z-index: 1;
  opacity: 50%;
}
.cta-title{
  color: var(--text);
  font-size: 30px;
  font-weight: 600;
  text-align: center;
  z-index: 10;
}
.contactForm {
  padding: 30px 0;
  display: grid;
  place-items: center;
  width: 50%;
  position: relative;
  z-index: 10;
}

.contactForm__card {
  width: 100%;
  padding: 35px;
  border-radius: 28px;
  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 90px rgba(0, 0, 0, 0.45);
}

/* Row base */
.fRow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.fIcon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #f76c01;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex: 0 0 auto;
}

.fIcon svg {
  width: 22px;
  height: 22px;
}

.fInput {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  outline: none;
  font-size: 14px;
}

.fInput::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

/* Split row (phone + select) */
.fRow--split {
  justify-content: space-between;
}

.fRow__left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}

/* Select */
.fSelectWrap {
  position: relative;
  width: 170px;
  flex: 0 0 auto;
}

.fSelect {
  width: 100%;
  height: 46px;
  padding: 0 42px 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.85);
  outline: none;
  appearance: none;
  cursor: pointer;
  font-size: 14px;
}

.fSelectArrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: rgba(255, 255, 255, 0.65);
}

/* Triple row */
.fRow--triple {
  gap: 12px;
}

.fInput--mini {
  height: 44px;
}

.fSelectWrap--mini {
  width: 170px;
}

/* Button */
.fBtn {
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  margin-top: 8px;
}

/* اگر کلاس گرادینت رو نداری */
.btn-primary-gradient {
  background: var(
    --primary-gradient,
    linear-gradient(to bottom right, #f76c01, #f98921)
  );
}

/* responsive */

@media (max-width: 769px) {
  .wrapper-hiro {
    margin-top: 5%;
  }
  .hiro {
    flex-direction: column;
    width: 90%;
  }
  .hiro-left {
    width: 100%;
  }
  .hiro-right {
    width: 100%;
    margin-top: -23%;
  }
  .hiro-left h2 {
    font-size: 30px;
  }
  .hiro-left span {
    font-size: 14px;
  }
  .contactForm{
    width: 80%;
  }
  .cta-light{
    top: -40%;
  }
    .qc{
  
  width: 90%;
 
}
  .qc__row{
    grid-template-columns: 1fr;
  }
  .qc__swap{
    width: 52px;
    height: 52px;
    margin: 0 auto;
  }
  .tc{
    width: 90%;
  }
}

@media (max-width: 430px) {
  .hiro {
    width: 100%;
  }
  .hiro-left {
    width: 95%;
    margin: 0 auto;
  }
  .hiro-left h2 {
    font-size: 26px;
    text-align: center;
  }
  .hiro-left span {
    text-align: justify;
  }
  .hiro-light {
    top: -10%;
  }
  .contactForm{
    width: 95%;
  }
  .cta-light{
    top: -20%;
    opacity: 100%;
  }
    .qc{
  
  width: 95%;
 
}
  .tc{
    width: 95%;
  }
}
