/* Anahata v2 — Profile ("Me"). Figma: Me (Profile).png / Me (Profile)-1.png. */

.profile__inner {
  display: flex;
  flex-direction: column;
  gap: var(--a-space-4);
  padding-inline: var(--a-gutter);
}

.profile__card {
  padding: var(--a-space-4);
  background: var(--a-surface);
  border-radius: var(--a-radius);
  /* flat — no drop shadow (designer review 2026-09-24) */
}

/* Figma 1546:2273: balance, currency, orders and link cards carry a 0.3px
   warm-sand hairline; the identity card has none */
.profile__card--outlined {
  border: 0.3px solid var(--a-tan);
}

/* identity */
.profile__identity {
  display: flex;
  align-items: center;
  gap: var(--a-space-3);
}

.profile__avatar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: var(--a-radius-round);
  background: var(--a-bg-subtle);
  color: var(--a-text-muted);
  overflow: hidden;
}

.profile__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile__identity-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profile__name {
  font-family: var(--a-font-body);
  font-weight: 600;
  font-size: var(--a-fs-body-l);
  line-height: normal;
  color: var(--a-ink);
}

.profile__email {
  font-family: var(--a-font-body);
  font-size: var(--a-fs-body-s);
  line-height: normal;
  color: var(--a-text-muted);
  overflow-wrap: anywhere;
}

.profile__edit {
  flex: 0 0 auto;
  display: flex;
  color: var(--a-ink);
}

/* balance */
.profile__balance {
  display: flex;
  flex-direction: column;
  gap: var(--a-space-2);
}

/* Figma: Aboreto 27. Designer: bigger than everything around it, with a
   0.5px stroke for weight */
.profile__balance .profile__balance-amount {
  font-size: var(--a-fs-title);
  line-height: normal;
  -webkit-text-stroke: var(--a-stroke-bold) currentColor;
}

/* larger and darker than Figma's 11px grey — it was hard to read */
.profile__balance .account-balance__note {
  font-weight: 500;
  font-size: var(--a-fs-body-xs);
  color: var(--a-text-soft);
}

.profile__balance .balance-tile {
  flex: 1 1 0;
  min-width: 0;
  border-width: 0.3px;
}

.profile__balance .balance-tile__title {
  font-weight: 600;
  font-size: var(--a-fs-body-s);
}

.profile__balance .balance-tile__subtitle {
  font-size: var(--a-fs-label);
}

.profile__balance .account-balance__tiles {
  display: flex;
  gap: var(--a-space-3);
  margin-top: var(--a-space-2);
}

.profile__redeem {
  align-self: flex-start;
  margin-top: var(--a-space-2);
  padding: 0;
  border: 0;
  background: transparent;
  font-family: var(--a-font-body);
  font-size: var(--a-fs-body-s);
  color: var(--a-brand-deep);
  text-decoration: underline;
  cursor: pointer;
}

/* a row: icon + label/value + control */
.profile__row {
  display: flex;
  align-items: center;
  gap: var(--a-space-3);
}

.profile__row-icon {
  flex: 0 0 auto;
  display: flex;
  color: var(--a-ink);
}

.profile__row-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.profile__row-label {
  font-family: var(--a-font-body);
  font-weight: 500;
  font-size: var(--a-fs-body-xs);
  line-height: normal;
  color: var(--a-ink-pure); /* Figma labels/primary — was grey */
}

.profile__row-value {
  font-family: var(--a-font-body);
  font-weight: 500;
  font-size: var(--a-fs-body-xs);
  line-height: normal;
  color: var(--a-ink-pure);
}

/* Figma "Component 1": a grey pill, bold code + chevron — not the teal
   gradient the footer's selector uses */
.profile__currency .currency-select .opt-dd {
  background: var(--a-bg-subtle);
  border-radius: var(--a-radius-chip-sm);
  color: var(--a-ink-pure);
  font-weight: 700;
}

.profile__currency .currency-select .opt-dd__label,
.profile__currency .currency-select .opt-dd__caret {
  color: var(--a-ink-pure);
}

.profile__currency .currency-select {
  flex: 0 0 auto;
}

/* "My orders" heading row */
.profile__section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--a-space-3);
  margin-top: var(--a-space-2);
}

.profile__section-title {
  margin: 0;
  font-family: var(--a-font-body);
  font-weight: 600;
  font-size: var(--a-fs-subheading);
  line-height: normal;
  color: var(--a-ink);
}

.profile__see-all {
  display: inline-flex;
  align-items: center;
  gap: var(--a-space-1);
  font-family: var(--a-font-body);
  font-size: var(--a-fs-body-s);
  color: var(--a-text-muted);
  text-decoration: none;
}

/* three order tiles, split by short rules */
.profile__tiles {
  display: flex;
  align-items: stretch;
  margin: 0;
  list-style: none;
}

.profile__tile {
  flex: 1 1 0;
  min-width: 0;
}

.profile__tile-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--a-space-1);
  text-align: center;
  text-decoration: none;
}

.profile__tiles-rule {
  flex: 0 0 auto;
  width: 1px;
  background: var(--a-border-soft);
}

.profile__tile-icon {
  display: flex;
  color: var(--a-ink);
}

.profile__tile-title {
  font-family: var(--a-font-body);
  font-weight: 500;
  font-size: var(--a-fs-label);
  line-height: 1.2;
  color: var(--a-ink-pure);
}

.profile__tile-note {
  font-family: var(--a-font-body);
  font-size: var(--a-fs-caption);
  line-height: 1.2;
  color: var(--a-label-secondary);
}

/* link rows */
.profile__links {
  margin: 0;
  padding: 0 var(--a-space-4);
  list-style: none;
}

.profile__link-row + .profile__link-row {
  border-top: 1px solid var(--a-border-soft);
}

.profile__link-row a {
  display: flex;
  align-items: center;
  gap: var(--a-space-3);
  padding: var(--a-space-4) 0;
  color: var(--a-ink);
  text-decoration: none;
}

.profile__link-label {
  flex: 1 1 auto;
  font-family: var(--a-font-body);
  font-size: var(--a-fs-body-s);
  line-height: normal;
}

/* logout */
.profile__logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--a-space-2);
  padding: var(--a-space-4);
  background: var(--a-fill-secondary);   /* Figma "Button / Logout": #E5E5EA — the khaki in Me (Profile).png is this under the tab bar's fade */
  border-radius: var(--a-radius);
  font-family: var(--a-font-body);
  font-weight: 600;
  font-size: var(--a-fs-body-l);
  color: var(--a-ink);
  text-decoration: none;
}

/* redeem modal — centred card, not a bottom sheet */
.redeem {
  display: flex;
  flex-direction: column;
  gap: var(--a-space-5);
  width: 100%;
}

.redeem__message {
  margin: calc(var(--a-space-3) * -1) 0 0;
  font-family: var(--a-font-body);
  font-size: var(--a-fs-label);
  line-height: var(--a-lh-label);
  color: var(--a-danger);
  text-align: center;
}

/* Me (Profile)-1.png: the field is a 56px box with 17px text */
.redeem .code-input {
  min-height: 56px;
}

.redeem .code-input__field {
  font-size: var(--a-fs-body-l);
}

.redeem__title {
  margin: 0;
  font-family: var(--a-font-body);
  font-weight: 700;
  font-size: var(--a-fs-rating-l);
  line-height: normal;
  color: var(--a-ink);
  text-align: center;
}

/* tan icon squares now come from the component itself (Figma 1552:3170) */
.profile__balance .balance-tile__icon {
  color: var(--a-on-dark);
}

/* the currency button sits at the row's right edge — hang its list from there */
.profile__currency .currency-select__list {
  left: auto;
  right: 0;
  transform: none;
}
