[data-faq-accordion] .faq-item {
  margin: 0 0 16px;
  border: 0;
  border-radius: 16px;
  background: #f6f7f9;
  color: #252b45;
  overflow: hidden;
  transition: background-color .35s ease, box-shadow .35s ease;
}

  [data-faq-accordion] .faq-item:last-of-type {
    margin-bottom: 0;
  }

  [data-faq-accordion] .faq-item[open] {
    background: #252525;
    color: #fff;
    box-shadow: 0 10px 24px rgba(37, 37, 37, .12);
  }

  [data-faq-accordion] .faq-item[open].is-closing {
    background: #f6f7f9;
    color: #252b45;
    box-shadow: none;
  }

[data-faq-accordion] .faq-item > summary {
  position: relative;
  display: flex;
  min-height: 64px;
  align-items: center;
  padding: 18px 64px 18px 22px;
  cursor: pointer;
  color: inherit;
  font-weight: 700;
  font-size: .8rem;
  line-height: 1.575;
  text-align: right;
  list-style: none;
}

  [data-faq-accordion] .faq-item > summary::-webkit-details-marker {
    display: none;
  }

  [data-faq-accordion] .faq-item > summary::marker {
    content: '';
  }

  [data-faq-accordion] .faq-item > summary::before {
    content: '+';
    position: absolute;
    top: 50%;
    right: 20px;
    width: 28px;
    height: 28px;
    color: #252525;
    font-family: Arial, sans-serif;
    font-size: 2rem;
    font-weight: 400;
    line-height: 25px;
    text-align: center;
    transform: translateY(-50%);
  }

  [data-faq-accordion] .faq-item[open] > summary {
    color: #fff;
    font-weight: 800;
  }

  [data-faq-accordion] .faq-item[open].is-closing > summary {
    color: #252b45;
    font-weight: 700;
  }

  [data-faq-accordion] .faq-item[open] > summary::before {
    content: '\00D7';
    color: #fff;
    font-size: 2rem;
  }

  [data-faq-accordion] .faq-item[open].is-closing > summary::before {
    content: '+';
    color: #252525;
  }

  [data-faq-accordion] .faq-item > summary:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -3px;
  }

[data-faq-accordion] .faq-answer {
  display: block;
  height: 0;
  padding: 0 22px;
  overflow: hidden;
  opacity: 0;
  transition: height .38s cubic-bezier(.22, 1, .36, 1),
    padding .38s cubic-bezier(.22, 1, .36, 1), opacity .24s ease;
  will-change: height;
}

  [data-faq-accordion] .faq-item:not([open]) > .faq-answer {
    display: block;
  }

  [data-faq-accordion] .faq-item[open] > .faq-answer {
    height: auto;
    padding-bottom: 22px;
    opacity: 1;
  }

  [data-faq-accordion] .faq-item.is-opening > .faq-answer {
    padding-bottom: 0;
  }

  [data-faq-accordion] .faq-item.is-closing > .faq-answer {
    padding-bottom: 0;
    opacity: 0;
  }

  [data-faq-accordion] .faq-answer p {
    margin: 0;
    color: inherit;
    font-size: .8rem;
    line-height: 1.71;
    text-align: right;
  }

@media (prefers-reduced-motion: reduce) {
  [data-faq-accordion] .faq-item,
  [data-faq-accordion] .faq-answer {
    transition: none;
  }
}

.contact-card {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

  .contact-card > .ui-icon {
    width: 24px;
    height: 24px;
    color: #2679ec;
    margin-top: 2px;
  }

  .contact-card div {
    display: grid;
    gap: 5px;
  }

  .contact-card a {
    color: #2679ec;
  }

.profile-info-section {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 24px;
}

  .profile-info-section:first-of-type {
    border-top: 0;
    padding-top: 0;
    margin-top: 20px;
  }

  .profile-info-section h3 {
    margin: 0 0 12px;
    font-size: 1rem;
  }

.profile-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0;
}

  .profile-info-grid > div {
    background: #f7f8fa;
    border-radius: 10px;
    padding: 11px 12px;
    min-width: 0;
  }

  .profile-info-grid dt {
    color: #777;
    font-size: .76rem;
    margin-bottom: 4px;
  }

  .profile-info-grid dd {
    margin: 0;
    font-weight: 700;
    overflow-wrap: anywhere;
  }

.profile-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

  .profile-info-list li {
    display: grid;
    grid-template-columns: 38px 1fr auto;
    gap: 8px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 11px 12px;
  }

    .profile-info-list li > .ui-icon {
      width: 24px;
      height: 24px;
      color: #2679ec;
      margin: auto;
    }

    .profile-info-list li > span:not(.ui-icon) {
      font-weight: 700;
      letter-spacing: .02em;
    }

  .profile-info-list small {
    color: #85878d;
    font-size: .7rem;
    text-align: left;
  }

@media (max-width: 390px) {
  .profile-info-grid {
    grid-template-columns: 1fr;
  }

  .profile-info-list li {
    grid-template-columns: 26px 1fr;
  }

  .profile-info-list small {
    grid-column: 2;
    text-align: right;
  }
}

.kyc-processing-page {
  display: grid;
  place-items: center;
  text-align: center;
}

.kyc-progress-state,
.kyc-error-state {
  width: min(100%, 360px);
  display: grid;
  justify-items: center;
  gap: 14px;
}

  .kyc-progress-state h2,
  .kyc-error-state h2 {
    margin: 6px 0 0;
    font-size: 1.1rem;
  }

  .kyc-progress-state p,
  .kyc-error-state p {
    margin: 0;
    color: #666;
    line-height: 2;
  }

.kyc-progress-ring {
  width: 70px;
  height: 70px;
  border: 6px solid #eee;
  border-top-color: #d6a61b;
  border-radius: 50%;
  animation: kyc-progress-spin .9s linear infinite;
}

.kyc-error-state > .ui-icon {
  width: 54px;
  height: 54px;
  color: #d12f42;
}

.kyc-error-state .primary {
  width: 100%;
}

.kyc-processing-page [hidden],
.kyc-manual-submit {
  display: none;
}

@keyframes kyc-progress-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .kyc-progress-ring {
    animation-duration: 1.8s;
  }
}

.withdraw-form {
  display: grid;
  gap: 20px;
}

.deposit-form {
  gap: 24px;
}

.deposit-amount-panel {
  display: grid;
  gap: 14px;
  padding: 24px 18px 20px;
  border-radius: 22px;
  background: #f6f7f9;
}

.deposit-amount-panel h2 {
  margin: 0;
  color: #222;
  font-size: 1.05rem;
}

.deposit-amount-limits {
  margin: 0;
  color: #777;
  font-size: .74rem;
}

.withdraw-alert {
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid #bce8d7;
  border-radius: 12px;
  background: #ecfbf5;
  color: #087653;
  font-size: .84rem;
  line-height: 1.8;
}

.withdraw-alert.is-error {
  border-color: #f0c4c7;
  background: #fff1f2;
  color: #b52f37;
}

.withdraw-balance, .withdraw-amount-panel {
  border-radius: 16px;
  background: #f6f7f9;
}

.withdraw-balance {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 22px 18px;
}

.withdraw-balance-icon {
  display: grid;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 14px;
  background: #fff;
  color: #222;
}

  .withdraw-balance-icon .ui-icon {
    width: 28px;
    height: 28px;
  }

.withdraw-balance b {
  display: block;
  margin-bottom: 6px;
  font-size: .95rem;
}

.withdraw-balance-copy time {
  display: block;
  color: #555;
  font-size: .78rem;
}

.withdraw-balance-amount {
  margin: 0;
  white-space: nowrap;
}

.withdraw-balance-amount strong {
  font-size: 1.12rem;
}

.withdraw-balance-amount small {
  margin-right: 4px;
  color: #555;
}

.withdraw-amount-panel {
  display: grid;
  gap: 12px;
  padding: 20px 18px;
}

.withdraw-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

  .withdraw-section-heading label, .withdraw-section-heading h2 {
    margin: 0;
    color: #222;
    font-size: .96rem;
    font-weight: 800;
  }

.withdraw-all-balance {
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.withdraw-all-balance {
  padding: 7px 12px;
  border: 1px solid #252525;
  border-radius: 10px;
  color: #252525;
  font-size: .78rem;
  font-weight: 700;
}

.withdraw-amount-input {
  display: flex;
  align-items: center;
  border: 1px solid #c7c9cd;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.withdraw-amount-input.is-invalid {
  border-color: #c9494f;
  box-shadow: 0 0 0 1px #c9494f;
}

  .withdraw-amount-input input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 0 16px;
    font: inherit;
  }

  .withdraw-amount-input span {
    padding-left: 16px;
    color: #777;
    font-size: .78rem;
  }

.withdraw-destination {
  display: grid;
  gap: 12px;
}

.profile-bank-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.withdraw-notes {
  padding: 18px;
  border: 1px solid #d8eef2;
  border-radius: 14px;
  background: #f5fcfd;
}

  .withdraw-notes h2 {
    margin: 0 0 10px;
    color: #14729b;
    font-size: .9rem;
  }

  .withdraw-notes ul {
    margin: 0;
    padding-right: 20px;
    color: #34383c;
    font-size: .78rem;
    line-height: 2;
  }

.withdraw-submit {
  width: 100%;
  margin-top: 2px;
  border-radius: 12px;
}

  .withdraw-submit:disabled {
    opacity: .5;
    cursor: not-allowed;
  }

.withdraw-validation:empty {
  display: none;
}

@media (max-width: 380px) {
  .withdraw-balance {
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 10px;
    padding-inline: 14px;
  }

  .withdraw-balance-icon {
    width: 46px;
    height: 46px;
  }

  .withdraw-balance-copy time, .withdraw-balance-amount small {
    font-size: .7rem;
  }

  .withdraw-balance-amount strong {
    font-size: 1rem;
  }
}

.price-chart-card {
  margin-top: 12px;
  padding: 20px 16px 18px;
  border-radius: 20px;
  background: #f3f4f6;
  transition: opacity .18s ease;
}

  .price-chart-card.is-loading {
    opacity: .55;
    cursor: progress;
  }

.price-chart-error {
  margin: 14px 0 0;
  color: #c4323d;
  font-size: .7rem;
  text-align: center;
}

.price-chart-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.price-chart-current {
  display: grid;
  gap: 4px;
  min-width: 132px;
}

  .price-chart-current > span {
    color: #91949a;
    font-size: .76rem;
  }

  .price-chart-current strong {
    color: #242528;
    font-size: 1.08rem;
    white-space: nowrap;
  }

  .price-chart-current small,
  .price-chart-summary small {
    color: #90939a;
    font-size: .66rem;
    font-weight: 500;
  }

.price-chart-ranges {
  display: flex;
  align-items: center;
  gap: 7px;
  direction: rtl;
}

  .price-chart-ranges a {
    display: grid;
    min-height: 40px;
    padding: 0 13px;
    place-items: center;
    border-radius: 20px;
    background: #fff;
    color: #92959b;
    font-size: .7rem;
    white-space: nowrap;
  }

    .price-chart-ranges a.is-active {
      background: #242424;
      color: #fff;
      font-weight: 800;
    }

  .price-chart-ranges .price-chart-range-24
  {
      min-width: 100px
  }

  .price-chart-plot {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 8px;
    min-height: 264px;
    margin: 26px 0 18px;
    direction: ltr;
  }

.price-chart-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 0 16px;
  color: #8f9399;
  font-size: .62rem;
}

.price-chart-plot svg {
  width: 100%;
  height: 264px;
  overflow: visible;
}

.price-chart-line {
  fill: none;
  stroke: #d1a82f;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
  vector-effect: non-scaling-stroke;
}

.price-chart-area {
  stroke: none;
}

.price-chart-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 14px 8px;
  border-radius: 16px;
  background: #fff;
}

  .price-chart-summary > div {
    display: grid;
    justify-items: center;
    gap: 8px;
    min-width: 0;
    padding: 0 5px;
    text-align: center;
  }

    .price-chart-summary > div + div {
      border-right: 1px solid #eef0f2;
    }

  .price-chart-summary span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #8d9096;
    font-size: .68rem;
    white-space: nowrap;
  }

  .price-chart-summary strong {
    max-width: 100%;
    color: #26272a;
    font-size: .72rem;
    white-space: nowrap;
  }

.price-chart-stat-icon {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  font-size: 1rem;
  font-style: normal;
  font-weight: 800;
}

  .price-chart-stat-icon.is-high {
    background: #d9faec;
    color: #12b878;
  }

  .price-chart-stat-icon.is-low {
    background: #ffe8e9;
    color: #ed3e49;
  }

  .price-chart-stat-icon.is-change {
    background: #e7f2ff;
    color: #2386d8;
  }

.price-chart-summary strong.positive {
  color: #13976c;
}

.price-chart-summary strong.negative {
  color: #df3945;
}

@media (prefers-reduced-motion: reduce) {
  .price-chart-card {
    transition: none;
  }
}

@media (max-width: 440px) {
  .price-chart-header {
    display: grid;
  }

  .price-chart-ranges {
    width: 100%;
  }

    .price-chart-ranges a {
      min-width: 0;
      flex: 1;
      padding-inline: 9px;
    }

  .price-chart-summary {
    padding-inline: 3px;
  }

    .price-chart-summary span {
      gap: 3px;
      font-size: .62rem;
    }

  .price-chart-stat-icon {
    width: 22px;
    height: 22px;
  }

  .price-chart-summary strong {
    font-size: .64rem;
  }
}

.kyc-birth-date-field {
  position: relative;
}

.kyc-birth-date-field input {
  padding-left: 48px;
  cursor: pointer;
  caret-color: transparent;
}

.kyc-birth-date-open {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 5px;
  display: grid;
  width: 42px;
  place-items: center;
  border-radius: 10px;
  background: transparent;
  color: #6f7379;
}

.kyc-birth-date-open .ui-icon {
  width: 20px;
  height: 20px;
}

.kyc-date-picker-backdrop {
  position: fixed;
  z-index: 50;
  inset: 0;
  background: rgb(0 0 0 / 38%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity .24s ease,
    visibility .24s ease;
}

.kyc-sheet.is-date-picker-open .kyc-date-picker-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.kyc-date-picker {
  position: fixed;
  z-index: 60;
  right: 50%;
  bottom: 0;
  width: min(100%, 550px);
  padding: 24px 20px max(20px, env(safe-area-inset-bottom));
  border-radius: 24px 24px 0 0;
  background: #fff;
  color: #222;
  box-shadow: 0 -16px 60px rgb(0 0 0 / 24%);
  visibility: hidden;
  transform: translate(50%, 110%);
  transition:
    transform .24s ease,
    visibility .24s ease;
}

.kyc-date-picker.is-open {
  visibility: visible;
  transform: translate(50%, 0);
}

.kyc-date-picker h2 {
  margin: 0 0 12px;
  font-size: 1rem;
  outline: 0;
  text-align: center;
}

.persian-date-wheels {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.persian-date-wheels::before,
.persian-date-wheels::after {
  position: absolute;
  z-index: 1;
  right: 0;
  left: 0;
  height: 1px;
  background: #e5e8ec;
  content: "";
  pointer-events: none;
}

.persian-date-wheels::before {
  top: 124px;
}

.persian-date-wheels::after {
  top: 172px;
}

.persian-date-wheel-group > span {
  display: block;
  height: 28px;
  color: #8b8e94;
  font-size: .72rem;
  font-weight: 700;
  text-align: center;
}

.persian-date-wheel {
  height: 240px;
  padding-block: 96px;
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: 10px;
  outline: 0;
  scrollbar-width: none;
  scroll-snap-type: y mandatory;
  overscroll-behavior: contain;
  mask-image: linear-gradient(
    to bottom,
    transparent,
    #000 25%,
    #000 75%,
    transparent
  );
}

.persian-date-wheel::-webkit-scrollbar {
  display: none;
}

.persian-date-wheel:focus-visible {
  box-shadow: inset 0 0 0 2px #222;
}

.persian-date-option {
  display: flex;
  width: 100%;
  height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  background: transparent;
  color: #777b81;
  font-size: 1rem;
  opacity: .34;
  scroll-snap-align: center;
}

.persian-date-option:focus {
  outline: 0;
}

.persian-date-option.is-selected {
  color: #222;
  font-size: 1.12rem;
  font-weight: 800;
  opacity: 1;
}

.kyc-date-picker-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  direction: ltr;
  gap: 12px;
  margin-top: 14px;
}

.kyc-date-picker-actions button {
  min-height: 52px;
  border: 2px solid #222;
  border-radius: 12px;
  background: #fff;
  color: #222;
  font-weight: 800;
}

.kyc-date-picker-actions .primary {
  background: #222;
  color: #fff;
}

body.has-open-bottom-sheet {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .kyc-date-picker,
  .kyc-date-picker-backdrop {
    transition: none;
  }
}
