html {
  min-height: 100%;
  height: auto;
  overflow-y: auto;
}

body[data-page="home"]:not(.auth-required) {
  min-height: 100vh;
  min-height: 100dvh;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--color-background);
}

body[data-page="home"]:not(.auth-required) .shell {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  min-height: 100dvh;
  height: auto;
  overflow: visible;
  margin: 0 auto;
  background: var(--color-background);
}

body[data-page="home"] .shell > header {
  display: grid !important;
  position: sticky;
  width: 100%;
  z-index: 5;
  top: 0;
  display: grid;
  height: 66px;
  grid-template-columns: 37px minmax(0, 1fr) 37px;
  padding: 0 clamp(18px, 4vw, 34px);
  border-bottom: 0;
  background: rgb(255 255 255 / 96%);
  backdrop-filter: blur(14px);
}

body[data-page="home"] .home-header-menu {
  display: grid;
  width: 37px;
  height: 37px;
  align-content: center;
  justify-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--color-text-primary);
}

.home-header-menu svg {
  width: 37px;
  height: 37px;
  display: block;
}

.home-header-menu span {
  width: 16px;
  height: 1.7px;
  border-radius: 2px;
  background: currentColor;
}

body[data-page="home"] .brand {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: block;
  width: min(158px, 48vw);
  height: 40px;
  margin: 0;
  transform: translate(-50%, -50%);
}

body[data-page="home"] .brand .flow-symbol {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

body[data-page="home"] .header-right {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}

.home-header-notifications {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--color-text-primary);
}

.home-notification-dot {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 6px;
  height: 6px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: var(--color-primary);
}

body[data-page="home"] .page-heading,
body[data-page="home"] .shell > main > footer {
  display: none;
}

body[data-page="home"] .shell > main {
  width: 100%;
  max-width: none;
  min-height: calc(100vh - 66px);
  min-height: calc(100dvh - 66px);
  overflow: visible;
  padding: 18px clamp(16px, 4vw, 30px) calc(112px + env(safe-area-inset-bottom));
  background: var(--color-background);
}

.home-dashboard {
  display: grid;
  gap: 14px;
}

.home-dashboard--no-banner .home-quick-access {
  margin-top: -14px;
}

.home-mobile-banner {
  display: none;
}

.home-wallet-card {
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  min-width: 0;
  overflow: hidden;
  padding: clamp(17px, 4.5vw, 30px);
  border: 0;
  border-radius: 21px;
  background: var(--color-primary-gradient);
  box-shadow: 0 18px 38px rgb(10 11 12 / 22%), inset 0 1px 0 rgb(255 255 255 / 32%);
  color: #fff;
}

.home-wallet-card::before {
  position: absolute;
  z-index: 0;
  top: -68%;
  left: -28%;
  width: 82%;
  height: 155%;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 50%;
  background: linear-gradient(145deg, rgb(255 255 255 / 23%), rgb(255 255 255 / 3%) 58%, transparent 70%);
  content: "";
  pointer-events: none;
  transform: rotate(-18deg);
}

.home-wallet-card::after {
  position: absolute;
  z-index: 0;
  top: -90px;
  right: 0;
  width: 215px;
  height: 215px;
  border: 1px solid rgb(255 255 255 / 17%);
  border-radius: 50%;
  box-shadow: 0 0 0 18px rgb(255 255 255 / 5%), 0 0 0 42px rgb(255 255 255 / 3%);
  content: "";
  pointer-events: none;
}

.home-wallet-top,
.home-wallet-owner,
.home-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.home-wallet-top {
  position: relative;
  z-index: 1;
  min-width: 0;
  color: rgb(255 255 255 / 78%);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .7px;
}

.home-wallet-top > div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.home-wallet-top > div > strong {
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -.1px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-wallet-plan {
  display: block;
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  padding: 5px 7px;
  border: 1px solid rgb(255 255 255 / 27%);
  border-radius: 20px;
  background: rgb(255 255 255 / 12%);
  font-size: 8px;
  letter-spacing: .35px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-wallet-state {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  margin: 0;
  padding: 5px 8px;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 999px;
  background: rgb(255 255 255 / 10%);
  color: rgb(255 255 255 / 82%);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .1px;
}

.home-wallet-retry {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: 12px;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-balance-line {
  position: relative;
  z-index: 1;
  min-height: 58px;
  padding-right: 48px;
}

.home-balance-line .balance {
  margin: 0;
  color: #fff;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -.5px;
  line-height: 1.25;
}

.home-balance-line .balance .decimals {
  color: rgb(255 255 255 / 78%);
}

.home-balance-line .balance-top {
  display: flex;
  position: absolute;
  top: 50%;
  right: 0;
  justify-content: flex-end;
  color: rgb(255 255 255 / 84%);
  transform: translateY(-50%);
}

.home-balance-line .balance-top > span {
  display: none;
}

.home-balance-line .balance-top button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 26%);
  border-radius: 10px;
  background: rgb(255 255 255 / 12%);
  color: #fff;
}

.home-balance-line .balance-skeleton {
  display: block;
  width: min(64%, 245px);
  height: 34px;
  border-radius: 9px;
  background: rgb(255 255 255 / 25%);
}

.home-wallet-held {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 4px;
  color: rgb(255 255 255 / 82%);
  font-size: 11px;
}

.home-wallet-owner {
  position: relative;
  z-index: 1;
  flex-wrap: nowrap;
  min-width: 0;
  margin-top: 9px;
  color: rgb(255 255 255 / 79%);
  font-size: 9px;
}

.home-wallet-owner > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-wallet-actions {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 15px;
}

.home-wallet-action {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgb(255 255 255 / 38%);
  border-radius: 14px;
  background: linear-gradient(145deg, rgb(255 255 255 / 25%), rgb(255 255 255 / 11%));
  color: #fff;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 42%), 0 5px 14px rgb(0 0 0 / 12%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 12px;
  font-weight: 700;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.home-wallet-action:hover {
  background: linear-gradient(145deg, rgb(255 255 255 / 34%), rgb(255 255 255 / 17%));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 52%), 0 8px 18px rgb(0 0 0 / 16%);
}

.home-wallet-action svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-wallet-action.secondary {
  border-color: rgb(255 255 255 / 45%);
  background: rgb(255 255 255 / 13%);
  color: #fff;
}

.home-wallet-decoration {
  position: absolute;
  z-index: -1;
  top: -108px;
  right: 0;
  width: 260px;
  height: 260px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgb(255 255 255 / 5%), 0 0 0 61px rgb(255 255 255 / 4%);
}

@media (max-width: 520px) {
  .home-wallet-card {
    padding: 16px;
    border-radius: 18px;
  }

  .home-wallet-top {
    align-items: start;
  }

  .home-wallet-top > div {
    max-width: calc(100% - 58px);
  }

  .home-wallet-state {
    margin-top: 1px;
  }

  .home-balance-line {
    min-height: 56px;
    padding-right: 44px;
  }

  .home-balance-line .balance {
    font-size: 26px;
  }

  .home-balance-line .balance-top button {
    width: 32px;
    height: 32px;
  }

  .home-wallet-actions {
    gap: 7px;
    margin-top: 13px;
  }

  .home-wallet-action {
    min-width: 0;
    padding: 0 8px;
    font-size: 11px;
  }
}

.home-section {
  min-width: 0;
}

.home-section-heading {
  min-height: 25px;
  margin-bottom: 12px;
}

.home-section-heading h2 {
  margin: 0;
  color: var(--color-text-primary);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -.2px;
}

.home-section-heading > span {
  color: var(--color-text-secondary);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: .6px;
}

.home-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
}

.home-quick-action {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 98px;
  align-content: center;
  justify-items: center;
  gap: 6px;
  padding: 11px 4px 9px;
  border: 1px solid rgb(255 255 255 / 60%);
  border-radius: 7px;
  background: linear-gradient(145deg, #f4f5f5, #e8e9e9);
  color: var(--color-text-primary);
  box-shadow: inset 0 1px 0 #fff, 0 4px 10px rgb(16 24 40 / 8%);
  text-align: center;
}

.home-quick-action:active {
  background: linear-gradient(145deg, #e8e9e9, #f4f5f5);
}

.home-quick-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 0;
  background: transparent;
  color: inherit;
}

.home-quick-icon svg {
  width: 26px;
  height: 26px;
}

.home-quick-glyph {
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
}

.home-quick-action strong {
  overflow: hidden;
  max-width: 100%;
  color: var(--color-text-primary);
  font-size: 9px;
  font-weight: 400;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-quick-action small {
  display: none;
}

.home-transactions {
  overflow: hidden;
  padding: 8px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.home-view-all {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 0 5px 9px;
  background: transparent;
  color: var(--color-primary);
  font-size: 10px;
  font-weight: 400;
}

.home-transaction-list .tx {
  min-height: 62px;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f1f3;
  border-radius: 0;
  background: #fff;
  transition: background-color .16s ease;
}

.home-transaction-list .tx:hover {
  background: #fafbfc;
}

.home-transaction-list .tx-icon {
  width: 36px;
  height: 36px;
  border: 1px solid #eaecf0;
  border-radius: 13px;
  background: #f8f9fb;
  color: #475467;
}

.home-transaction-list .tx.credit .tx-icon {
  border-color: #d1fadf;
  background: #ecfdf3;
  color: #039855;
}

.home-transaction-list .tx-info {
  display: grid;
  gap: 5px;
}

.home-transaction-list .tx-title {
  color: #344054;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}

.home-transaction-list .tx-info .tx-date {
  margin: 0;
  color: #98a2b3 !important;
  font-size: 12px;
}

.home-transaction-list .tx-amount {
  color: #475467;
  font-size: 13px;
  font-weight: 550;
}

.home-transaction-list .tx.credit .tx-amount {
  color: #31945b;
}

.home-transaction-list .tx.debit .tx-amount {
  color: #c84943;
}

.home-transaction-list .tx-amount small {
  display: table;
  justify-content: center;
  margin-top: 5px;
  margin-left: auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #475467;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.3;
}

.home-transaction-list .tx-amount small.pending {
  background: #fffaeb;
  color: #b54708;
}

.home-transaction-list .empty {
  padding: 20px 8px;
  color: var(--color-text-secondary);
  font-size: 12px;
  text-align: center;
}

.home-menu-list {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.home-menu-list button {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  padding: 0 13px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #fff;
  color: var(--color-text-primary);
  font-size: 13px;
}

body[data-page="home"] .home-quick-action {
  border-color: rgb(255 255 255 / 60%);
  border-radius: 7px;
  box-shadow: inset 0 1px 0 #fff, 0 4px 10px rgb(16 24 40 / 8%);
}

body[data-page="transactions"] .shell,
body[data-page="profile"] .shell {
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  margin: 0;
}

body[data-page="transactions"] .shell > main,
body[data-page="profile"] .shell > main {
  width: 100%;
  max-width: none;
  min-height: calc(100dvh - 66px);
  padding: 24px clamp(20px, 5vw, 56px) calc(112px + env(safe-area-inset-bottom));
}

body[data-page="transactions"] #page,
body[data-page="profile"] #page {
  width: 100%;
  max-width: none;
  margin: 0;
}

body[data-page="transactions"] #page > .panel {
  min-height: calc(100dvh - 180px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-page="transactions"] .toolbar {
  grid-template-columns: minmax(0, 1fr) minmax(140px, 210px);
  margin-top: 18px;
}

body[data-page="profile"] .profile-page {
  width: 100%;
  max-width: none;
  margin: 0;
}

body[data-page="profile"] .shell > main {
  width: 100%;
  max-width: none;
  min-height: calc(100dvh - 66px);
  padding-right: clamp(20px, 5vw, 56px);
  padding-left: clamp(20px, 5vw, 56px);
  background: #fff;
}

body[data-page="profile"] .profile-hero,
body[data-page="profile"] .profile-card,
body[data-page="profile"] .profile-guest {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-page="profile"] .profile-hero {
  min-height: 128px;
  padding: 22px 0 26px;
  border-bottom: 1px solid #eef0f2 !important;
}

body[data-page="profile"] .profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  margin-top: 0;
}

body[data-page="profile"] .profile-card {
  min-width: 0;
  padding: 28px 0 0;
}

body[data-page="profile"] .profile-card + .profile-card {
  border-left: 1px solid #eef0f2 !important;
  padding-left: clamp(24px, 4vw, 56px);
}

body[data-page="profile"] .profile-detail {
  padding: 18px 0;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  background: transparent;
}

body[data-page="profile"] .profile-link {
  min-height: 70px;
  padding: 12px 0;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  background: transparent;
}

@media (max-width: 650px) {
  body[data-page="home"] .brand {
    width: min(140px, 42vw);
    height: 36px;
  }

  body[data-page="transactions"] .shell > main,
  body[data-page="profile"] .shell > main {
    min-height: calc(100dvh - 58px);
    padding: 18px 20px calc(104px + env(safe-area-inset-bottom));
  }

  body[data-page="profile"] .shell > main {
    padding: 10px 20px calc(104px + env(safe-area-inset-bottom));
  }

  body[data-page="transactions"] .shell > main {
    padding: 16px 14px calc(104px + env(safe-area-inset-bottom));
  }

  body[data-page="transactions"] #page > .panel {
    min-height: 0;
    padding: 15px 13px 10px;
    border-radius: 17px;
  }

  body[data-page="transactions"] .toolbar {
    grid-template-columns: minmax(0, 1fr) minmax(125px, 40%);
    gap: 8px;
    margin-top: 13px;
  }

  body[data-page="transactions"] .toolbar input,
  body[data-page="transactions"] .toolbar select {
    min-height: 42px;
    padding-right: 9px;
    padding-left: 10px;
    font-size: 12px;
  }

  body[data-page="transactions"] #page > .panel > .section-top {
    padding-bottom: 12px;
  }

  body[data-page="profile"] .profile-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin-top: 0;
  }

  body[data-page="profile"] .profile-hero {
    min-height: 92px;
    padding: 16px 0 20px;
  }

  body[data-page="profile"] .profile-card {
    padding: 24px 0 0;
  }

  body[data-page="profile"] .profile-card + .profile-card {
    border-top: 1px solid #eef0f2 !important;
    border-left: 0 !important;
    padding: 24px 0 0;
  }
}

@media (min-width: 700px) {
  body[data-page="home"] .shell > main {
    padding-top: 28px;
  }

  .home-dashboard {
    gap: 23px;
  }

  .home-wallet-card {
    min-height: 245px;
    padding: 30px 34px;
  }

  .home-wallet-actions {
    max-width: 380px;
  }

  .home-quick-grid {
    gap: 6px;
  }

  body[data-page="home"] .home-quick-action {
    min-height: 126px;
    gap: 5px;
  }

  .home-quick-icon {
    width: 52px;
    height: 52px;
  }

  .home-quick-icon svg {
    width: 32px;
    height: 32px;
  }

  .home-quick-action strong {
    font-size: 10px;
  }
}

@media (max-width: 380px) {
  body[data-page="home"] .mobile-nav {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    right: 0;
    left: 0;
    margin: 0;
    border-radius: 19px 19px 0 0;
  }

  body[data-page="home"] .mobile-nav button {
    min-width: 0;
    padding-right: 2px;
    padding-left: 2px;
  }

  body[data-page="home"] .mobile-nav .mobile-add {
    width: 48px;
    min-width: 0;
    justify-self: center;
  }

  .home-dashboard {
    gap: 13px;
  }

  .home-wallet-owner {
    font-size: 8px;
  }

  .home-wallet-actions {
    gap: 6px;
  }

  .home-wallet-action {
    gap: 3px;
    padding: 0 3px;
    font-size: 10px;
  }

  .home-quick-grid {
    gap: 7px;
  }

  .home-quick-action {
    min-height: 92px;
    gap: 5px;
    padding: 8px 2px;
    border-radius: 13px;
  }

  .home-quick-icon {
    width: 42px;
    height: 42px;
  }

  .home-quick-action strong {
    font-size: 9px;
    line-height: 1.1;
    text-overflow: clip;
    white-space: normal;
  }
}

@media (max-width: 380px) and (max-height: 700px) {
  body[data-page="home"] .shell > main {
    padding-top: 12px;
  }

  .home-dashboard {
    gap: 10px;
  }

  .home-wallet-card {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .home-wallet-state {
    margin-top: 11px;
  }

  .home-wallet-owner {
    margin-top: 7px;
  }

  .home-wallet-actions {
    margin-top: 11px;
  }

}

body[data-page] .mobile-nav {
  position: fixed !important;
  z-index: 20;
  right: auto !important;
  bottom: calc(10px + env(safe-area-inset-bottom)) !important;
  left: 50% !important;
  display: grid !important;
  width: min(520px, calc(100% - 24px)) !important;
  min-height: 66px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 58px minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  justify-content: initial;
  gap: 2px;
  margin: 0 !important;
  padding: 7px 10px !important;
  box-sizing: border-box;
  border: 1px solid var(--color-border) !important;
  border-radius: 22px !important;
  background: rgb(255 255 255 / 96%) !important;
  box-shadow: 0 8px 28px rgb(16 24 40 / 14%) !important;
  transform: translateX(-50%) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

body[data-page] .mobile-nav button {
  display: flex;
  width: 100%;
  min-width: 0 !important;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  overflow: hidden;
  padding: 4px 1px;
  border-radius: 12px;
  background: transparent;
  color: var(--color-navigation-inactive);
  font-size: clamp(8px, 2.7vw, 11px);
  line-height: 1.1;
  white-space: nowrap;
}

body[data-page] .mobile-nav button.active {
  background: var(--color-sage-soft);
  color: var(--color-sage-muted);
}

body[data-page] .mobile-nav button.active svg {
  color: var(--color-sage-muted);
}

body[data-page] .mobile-nav button svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

body[data-page] .mobile-nav .mobile-add {
  width: 50px !important;
  min-width: 50px !important;
  height: 50px;
  min-height: 50px;
  justify-self: center;
  align-self: center;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 16px !important;
  background: var(--color-primary) !important;
  color: #fff !important;
  box-shadow: 0 5px 13px rgb(0 0 0 / 24%);
  transform: none !important;
}

body[data-page] .mobile-nav .mobile-add svg {
  width: 25px;
  height: 25px;
}

body[data-page] .mobile-nav button:active {
  transform: scale(.97) !important;
}

@media (max-width: 360px) {
  body[data-page] .mobile-nav {
    width: calc(100% - 16px) !important;
    min-height: 60px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 52px minmax(0, 1fr) minmax(0, 1fr);
    gap: 0;
    padding-right: 5px !important;
    padding-left: 5px !important;
    border-radius: 18px !important;
  }

  body[data-page] .mobile-nav button {
    gap: 3px;
    font-size: 8px;
  }

  body[data-page] .mobile-nav button svg {
    width: 18px;
    height: 18px;
  }

  body[data-page] .mobile-nav .mobile-add {
    width: 46px !important;
    min-width: 46px !important;
    height: 46px;
    min-height: 46px;
    border-radius: 14px !important;
  }
}

body[data-page] .mobile-nav {
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  min-height: calc(72px + env(safe-area-inset-bottom));
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  padding: 7px 12px calc(7px + env(safe-area-inset-bottom)) !important;
  border: 0 !important;
  border-top: 1px solid rgb(16 24 40 / 8%) !important;
  border-radius: 0 !important;
  background: rgb(255 255 255 / 97%) !important;
  box-shadow: 0 -6px 24px rgb(16 24 40 / 7%) !important;
  transform: none !important;
}

body[data-page] .mobile-nav button {
  min-height: 52px;
  flex-direction: column;
  gap: 3px;
  padding: 4px 2px;
  border-radius: 12px;
  font-size: clamp(9px, 2.5vw, 11px);
  font-weight: 550;
}

body[data-page] .mobile-nav button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body[data-page] .mobile-nav .mobile-add {
  width: 48px !important;
  min-width: 48px !important;
  height: 48px;
  min-height: 48px;
  border-radius: 16px !important;
}

body[data-page] .mobile-nav .mobile-add svg {
  width: 23px;
  height: 23px;
  stroke-width: 2;
}

.home-view-all svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-view-all span {
  display: inline-flex;
}

.home-view-all svg {
  width: 15px;
  height: 15px;
}

body[data-page="accounts"] #page > .panel.profile-box {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-page="accounts"] .profile-box .section-top {
  margin-bottom: 16px;
}

body[data-page="accounts"] .account-add-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 16px;
}

body[data-page="accounts"] .account-tile {
  border-radius: 0;
  border-right: 0;
  border-bottom: 1px solid var(--color-border);
  border-left: 0;
  background: transparent;
  box-shadow: none;
}

.profile-link svg,
.profile-card-icon svg,
.profile-guest-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body[data-page] #page svg,
body[data-page] .shell header [data-icon] svg,
body[data-page] .shell footer [data-icon] svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 380px) {
  body[data-page] .mobile-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    padding-right: 7px !important;
    padding-left: 7px !important;
    border-radius: 0 !important;
  }

  body[data-page] .mobile-nav button {
    gap: 2px;
    font-size: 9px;
  }
}

#modal.flow-page.transaction-details-modal {
  position: fixed !important;
  z-index: 1000 !important;
  inset: 0 !important;
  display: flex !important;
  width: 100% !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-height: none !important;
  flex-direction: column;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #f7f8fa !important;
  box-shadow: none !important;
  overscroll-behavior: contain;
}

#modal.flow-page.transaction-details-modal .modal-head {
  position: sticky !important;
  z-index: 2;
  top: 0;
  right: auto !important;
  left: auto !important;
  display: flex;
  width: 100% !important;
  max-width: none !important;
  min-height: calc(58px + env(safe-area-inset-top));
  flex: 0 0 auto;
  align-items: center;
  gap: 13px;
  margin: 0;
  padding: calc(7px + env(safe-area-inset-top)) max(18px, env(safe-area-inset-left)) 7px !important;
  border: 0;
  border-bottom: 1px solid #eceef1;
  background: rgb(255 255 255 / 96%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

#modal.flow-page.transaction-details-modal .modal-head .icon-btn {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 0 !important;
  border-radius: 14px;
  background: #f3f4f6 !important;
  color: #282b30 !important;
}

#modal.flow-page.transaction-details-modal .modal-head .icon-btn svg {
  width: 20px;
  height: 20px;
  fill: none !important;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#modal.flow-page.transaction-details-modal .modal-head::after {
  position: static !important;
  left: auto !important;
  transform: none !important;
  content: "Transaction details";
  color: #202329;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -.2px;
}

#modal.flow-page.transaction-details-modal #modal-content {
  display: block;
  width: 100% !important;
  max-width: 760px !important;
  min-height: 0;
  flex: 1 0 auto;
  margin: 0 auto !important;
  padding: 24px clamp(18px, 5vw, 38px) calc(30px + env(safe-area-inset-bottom)) !important;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}

#modal.flow-page.transaction-details-modal .transaction-receipt {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: clamp(23px, 5vw, 38px);
  border: 1px solid #eceef1;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 8px 24px rgb(24 32 45 / 4%);
}

#modal.flow-page.transaction-details-modal .transaction-receipt-top {
  justify-content: center;
  gap: 12px;
}

#modal.flow-page.transaction-details-modal .transaction-receipt-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  font-size: 22px;
  font-weight: 700;
}

#modal.flow-page.transaction-details-modal .transaction-receipt-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#modal.flow-page.transaction-details-modal .transaction-status {
  padding: 8px 12px;
  border: 1px solid #d1fae5;
  background: #ecfdf5;
  color: #067647;
  font-size: 12px;
  font-weight: 650;
}

#modal.flow-page.transaction-details-modal .transaction-status.pending {
  border-color: #fedf89;
  background: #fffaeb;
  color: #b54708;
}

#modal.flow-page.transaction-details-modal .transaction-receipt-kicker {
  margin: 24px 0 7px;
  color: #7b818a;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.25px;
  text-align: center;
}

#modal.flow-page.transaction-details-modal .transaction-receipt h2 {
  margin: 0;
  color: #202329;
  font-size: clamp(22px, 5vw, 28px);
  font-weight: 650;
  letter-spacing: -.55px;
  text-align: center;
}

#modal.flow-page.transaction-details-modal .transaction-receipt-amount {
  margin: 13px 0 0;
  color: #202329;
  font-size: clamp(34px, 9vw, 44px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -1.1px;
  line-height: 1.15;
  text-align: center;
}

#modal.flow-page.transaction-details-modal .transaction-receipt-caption {
  margin: 6px 0 26px;
  color: #737982;
  font-size: 13px;
  text-align: center;
}

#modal.flow-page.transaction-details-modal .transaction-receipt-details {
  border-top: 1px solid #eceef1;
}

#modal.flow-page.transaction-details-modal .transaction-receipt-details > div {
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid #eceef1;
}

#modal.flow-page.transaction-details-modal .transaction-receipt-details span {
  color: #737982;
  font-size: 12px;
  line-height: 1.5;
}

#modal.flow-page.transaction-details-modal .transaction-receipt-details strong,
#modal.flow-page.transaction-details-modal .transaction-receipt-details code {
  color: #272a30;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
  text-align: right;
}

#modal.flow-page.transaction-details-modal .transaction-receipt-note {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 7px;
  margin: 18px 0 0;
  color: #7b818a;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

#modal.flow-page.transaction-details-modal .transaction-receipt-note svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (min-width: 700px) {
  #modal.flow-page.transaction-details-modal #modal-content {
    align-content: start;
    padding-top: 42px !important;
  }
}

@media (max-width: 400px) {
  #modal.flow-page.transaction-details-modal #modal-content {
    padding-right: 14px !important;
    padding-left: 14px !important;
  }

  #modal.flow-page.transaction-details-modal .transaction-receipt {
    padding: 23px 18px;
    border-radius: 20px;
  }

  #modal.flow-page.transaction-details-modal .transaction-receipt-details > div {
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    gap: 10px;
  }
}

#modal.flow-page.transaction-details-modal {
  background: #fff !important;
}

/* Final quick-action polish: color-matched depth without visible outlines. */
body[data-page="home"] .home-quick-action {
  border: 0 !important;
  box-shadow: none !important;
}

body[data-page="home"] .home-quick-action:nth-child(1) {
  box-shadow: 0 10px 24px rgb(37 99 235 / 28%), 0 3px 8px rgb(56 189 248 / 18%) !important;
}

body[data-page="home"] .home-quick-action:nth-child(2) {
  box-shadow: 0 10px 24px rgb(124 58 237 / 28%), 0 3px 8px rgb(192 132 252 / 18%) !important;
}

body[data-page="home"] .home-quick-action:nth-child(3) {
  box-shadow: 0 10px 24px rgb(5 150 105 / 28%), 0 3px 8px rgb(52 211 153 / 18%) !important;
}

body[data-page="home"] .home-quick-action:nth-child(4) {
  box-shadow: 0 10px 24px rgb(234 88 12 / 28%), 0 3px 8px rgb(251 146 60 / 18%) !important;
}

body[data-page="home"] .home-quick-action:nth-child(5) {
  box-shadow: 0 10px 24px rgb(8 145 178 / 28%), 0 3px 8px rgb(34 211 238 / 18%) !important;
}

body[data-page="home"] .home-quick-action:nth-child(6) {
  box-shadow: 0 10px 24px rgb(219 39 119 / 28%), 0 3px 8px rgb(244 114 182 / 18%) !important;
}

body[data-page="home"] .home-quick-action:nth-child(7) {
  box-shadow: 0 10px 24px rgb(202 138 4 / 28%), 0 3px 8px rgb(250 204 21 / 18%) !important;
}

body[data-page="home"] .home-quick-action:nth-child(8) {
  box-shadow: 0 10px 24px rgb(71 85 105 / 28%), 0 3px 8px rgb(148 163 184 / 18%) !important;
}

/* Final override: every quick-access tile follows the hero card treatment. */
body[data-page="home"] .home-quick-action {
  isolation: isolate;
  overflow: hidden;
  border: 0 !important;
  background: var(--color-primary-gradient) !important;
  box-shadow: 0 10px 24px rgb(10 11 12 / 18%), inset 0 1px 0 rgb(255 255 255 / 30%) !important;
  color: #fff !important;
}

body[data-page="home"] .home-quick-action::before {
  position: absolute;
  z-index: -1;
  top: -58%;
  right: -22%;
  width: 115px;
  height: 115px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 50%;
  box-shadow: 0 0 0 12px rgb(255 255 255 / 5%), 0 0 0 28px rgb(255 255 255 / 3%);
  content: "";
  pointer-events: none;
}

body[data-page="home"] .home-quick-action::after {
  position: absolute;
  z-index: -1;
  bottom: -45%;
  left: -20%;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(255 255 255 / 16%), transparent 68%);
  content: "";
  pointer-events: none;
}

body[data-page="home"] .home-quick-action .home-quick-icon,
body[data-page="home"] .home-quick-action strong {
  position: relative;
  z-index: 1;
  color: #fff !important;
}

body[data-page="home"] .home-quick-action .home-quick-icon svg {
  color: #fff !important;
  stroke: currentColor !important;
}

body[data-page="profile"] .shell > main > .page-heading {
  display: none !important;
}

body[data-page="profile"] .shell > main {
  min-height: calc(100dvh - 66px);
  padding: 0 clamp(20px, 5vw, 56px) 40px;
}

body[data-page="profile"] .profile-page {
  width: min(100%, 620px);
  margin: 0 auto;
}

body[data-page="profile"] .profile-page-header {
  position: relative;
  top: auto;
  left: auto;
  width: 100%;
  height: 84px;
  min-height: 84px;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  margin: 0 -8px;
  padding: 8px 0;
}

body[data-page="profile"] .profile-page-header .topup-back {
  justify-self: start;
  color: #30372e;
}

body[data-page="profile"] .profile-page-header .topup-title h2 {
  margin: 0;
  color: #30372e;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -.3px;
}

body[data-page="profile"] .profile-hero {
  display: flex;
  min-height: 112px;
  align-items: center;
  gap: 20px;
  margin: 0;
  padding: 8px 0 24px;
  border-bottom: 1px solid var(--color-border) !important;
}

body[data-page="profile"] .profile-avatar {
  width: 88px;
  height: 88px;
  flex: 0 0 88px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #e9eaeb;
  color: #30372e;
  font-size: 34px;
  font-weight: 600;
}

body[data-page="profile"] .profile-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

body[data-page="profile"] .profile-identity {
  min-width: 0;
}

body[data-page="profile"] .profile-identity h2 {
  overflow-wrap: anywhere;
  margin: 0 0 5px;
  color: var(--color-text-primary);
  font-size: 18px;
  font-weight: 650;
}

body[data-page="profile"] .profile-identity p {
  overflow-wrap: anywhere;
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 14px;
}

body[data-page="profile"] .profile-edit-button {
  min-height: 34px;
  margin-top: 10px;
  padding: 0 14px;
  border: 1px solid var(--color-border);
  border-radius: 9px;
  background: #fff;
  color: var(--color-text-primary);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

body[data-page="profile"] .profile-edit-form {
  display: grid;
  gap: 14px;
}

body[data-page="profile"] .profile-edit-form label {
  display: grid;
  gap: 7px;
  color: var(--color-text-secondary);
  font-size: 13px;
}

body[data-page="profile"] .profile-edit-form input {
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  color: var(--color-text-primary);
  font: inherit;
}

body[data-page="profile"] .profile-edit-error {
  margin: 0;
  color: #b42318;
  font-size: 13px;
}

body[data-page="profile"] .profile-menu-section {
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}

body[data-page="profile"] .profile-menu-row {
  width: 100%;
  min-height: 46px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--color-text-primary);
  font: inherit;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}

body[data-page="profile"] .profile-menu-row:hover,
body[data-page="profile"] .profile-menu-row:focus-visible {
  background: #f7f8f8;
}

body[data-page="profile"] .profile-menu-icon {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: #38413b;
}

body[data-page="profile"] .profile-menu-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body[data-page="profile"] .profile-menu-chevron {
  display: grid;
  place-items: center;
  color: #667085;
}

body[data-page="profile"] .profile-menu-chevron svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

body[data-page="profile"] .profile-menu-logout,
body[data-page="profile"] .profile-menu-logout .profile-menu-icon {
  color: #d92d20;
}

@media (max-width: 650px) {
  body[data-page="profile"] .shell > main {
    padding: 0 18px calc(88px + env(safe-area-inset-bottom));
  }

  body[data-page="profile"] .profile-page-header {
    height: 64px;
    min-height: 64px;
    margin: 0 -4px;
    padding: 4px 0;
  }

  body[data-page="profile"] .profile-page-header .topup-title h2 {
    font-size: 18px;
  }

  body[data-page="profile"] .profile-hero {
    min-height: 102px;
    gap: 16px;
    padding: 8px 0 18px;
  }

  body[data-page="profile"] .profile-avatar {
    width: 76px;
    height: 76px;
    flex-basis: 76px;
    font-size: 30px;
  }

  body[data-page="profile"] .profile-identity h2 {
    font-size: 16px;
  }

  body[data-page="profile"] .profile-identity p {
    font-size: 13px;
  }

  body[data-page="profile"] .profile-menu-section {
    padding: 8px 0;
  }

  body[data-page="profile"] .profile-menu-row {
    min-height: 44px;
    font-size: 14px;
  }
}

@media (max-width: 350px) {
  body[data-page="profile"] .profile-page-header {
    height: 58px;
    min-height: 58px;
  }
}

body[data-page="profile"] .shell > main > .page-heading {
  display: none !important;
}

body[data-page="profile"] .shell > main {
  min-height: calc(100dvh - 66px);
  padding: 0 clamp(20px, 5vw, 56px) 40px;
}

body[data-page="profile"] .profile-page {
  width: min(100%, 620px);
  margin: 0 auto;
}

body[data-page="profile"] .profile-page-header {
  min-height: 84px;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  margin: 0 -8px;
  padding: 8px 0;
}

body[data-page="profile"] .profile-page-header .topup-back {
  justify-self: start;
  color: #30372e;
}

body[data-page="profile"] .profile-page-header .topup-title h2 {
  margin: 0;
  color: #30372e;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -.3px;
}

body[data-page="profile"] .profile-hero {
  display: flex;
  min-height: 112px;
  align-items: center;
  gap: 20px;
  margin: 0;
  padding: 8px 0 24px;
  border-bottom: 1px solid var(--color-border) !important;
}

body[data-page="profile"] .profile-avatar {
  width: 88px;
  height: 88px;
  flex: 0 0 88px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #e9eaeb;
  color: #30372e;
  font-size: 34px;
  font-weight: 600;
}

body[data-page="profile"] .profile-identity {
  min-width: 0;
}

body[data-page="profile"] .profile-identity h2 {
  overflow-wrap: anywhere;
  margin: 0 0 5px;
  color: var(--color-text-primary);
  font-size: 18px;
  font-weight: 650;
}

body[data-page="profile"] .profile-identity p {
  overflow-wrap: anywhere;
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 14px;
}

body[data-page="profile"] .profile-menu-section {
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}

body[data-page="profile"] .profile-menu-row {
  width: 100%;
  min-height: 46px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--color-text-primary);
  font: inherit;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}

body[data-page="profile"] .profile-menu-row:hover,
body[data-page="profile"] .profile-menu-row:focus-visible {
  background: #f7f8f8;
}

body[data-page="profile"] .profile-menu-icon {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: #38413b;
}

body[data-page="profile"] .profile-menu-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body[data-page="profile"] .profile-menu-chevron {
  display: grid;
  place-items: center;
  color: #667085;
}

body[data-page="profile"] .profile-menu-chevron svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

body[data-page="profile"] .profile-menu-logout,
body[data-page="profile"] .profile-menu-logout .profile-menu-icon {
  color: #d92d20;
}

@media (max-width: 650px) {
  body[data-page="profile"] .shell > main {
    padding: 0 18px calc(88px + env(safe-area-inset-bottom));
  }

  body[data-page="profile"] .profile-page-header {
    height: 64px;
    min-height: 64px;
    margin: 0 -4px;
    padding: 4px 0;
  }

  body[data-page="profile"] .profile-page-header .topup-title h2 {
    font-size: 18px;
  }

  body[data-page="profile"] .profile-hero {
    min-height: 102px;
    gap: 16px;
    padding: 8px 0 18px;
  }

  body[data-page="profile"] .profile-avatar {
    width: 76px;
    height: 76px;
    flex-basis: 76px;
    font-size: 30px;
  }

  body[data-page="profile"] .profile-identity h2 {
    font-size: 16px;
  }

  body[data-page="profile"] .profile-identity p {
    font-size: 13px;
  }

  body[data-page="profile"] .profile-menu-section {
    padding: 8px 0;
  }

  body[data-page="profile"] .profile-menu-row {
    min-height: 44px;
    font-size: 14px;
  }
}

@media (max-width: 350px) {
  body[data-page="profile"] .profile-page-header {
    height: 58px;
    min-height: 58px;
  }
}

@media (max-width: 650px) {
  body[data-page="home"] .home-mobile-banner {
    display: block;
    width: 100%;
    overflow: hidden;
    margin: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  body[data-page="home"] .home-mobile-banner img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2172 / 724;
    object-fit: cover;
    border-radius: 14px;
  }
}

body[data-page="home"] .home-mobile-banner[hidden] {
  display: none !important;
}

body[data-page="profile"] .shell > main > .page-heading {
  display: none !important;
}

body[data-page="profile"] .shell > main {
  min-height: calc(100dvh - 66px);
  padding: 0 clamp(20px, 5vw, 56px) 40px;
}

body[data-page="profile"] .profile-page {
  width: min(100%, 620px);
  margin: 0 auto;
}

body[data-page="profile"] .profile-page-header {
  min-height: 84px;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  margin: 0 -8px;
  padding: 8px 0;
}

body[data-page="profile"] .profile-page-header .topup-back {
  justify-self: start;
  color: #30372e;
}

body[data-page="profile"] .profile-page-header .topup-title h2 {
  margin: 0;
  color: #30372e;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -.3px;
}

body[data-page="profile"] .profile-hero {
  display: flex;
  min-height: 112px;
  align-items: center;
  gap: 20px;
  margin: 0;
  padding: 8px 0 24px;
  border-bottom: 1px solid var(--color-border) !important;
}

body[data-page="profile"] .profile-avatar {
  width: 88px;
  height: 88px;
  flex: 0 0 88px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #e9eaeb;
  color: #30372e;
  font-size: 34px;
  font-weight: 600;
}

body[data-page="profile"] .profile-identity {
  min-width: 0;
}

body[data-page="profile"] .profile-identity h2 {
  overflow-wrap: anywhere;
  margin: 0 0 5px;
  color: var(--color-text-primary);
  font-size: 18px;
  font-weight: 650;
}

body[data-page="profile"] .profile-identity p {
  overflow-wrap: anywhere;
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 14px;
}

body[data-page="profile"] .profile-menu-section {
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}

body[data-page="profile"] .profile-menu-row {
  width: 100%;
  min-height: 46px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--color-text-primary);
  font: inherit;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}

body[data-page="profile"] .profile-menu-row:hover,
body[data-page="profile"] .profile-menu-row:focus-visible {
  background: #f7f8f8;
}

body[data-page="profile"] .profile-menu-icon {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: #38413b;
}

body[data-page="profile"] .profile-menu-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body[data-page="profile"] .profile-menu-chevron {
  display: grid;
  place-items: center;
  color: #667085;
}

body[data-page="profile"] .profile-menu-chevron svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

body[data-page="profile"] .profile-menu-logout,
body[data-page="profile"] .profile-menu-logout .profile-menu-icon {
  color: #d92d20;
}

@media (max-width: 650px) {
  body[data-page="profile"] .shell > main {
    padding: 0 18px calc(88px + env(safe-area-inset-bottom));
  }

  body[data-page="profile"] .profile-page-header {
    min-height: 68px;
    margin: 0 -4px;
    padding: 4px 0;
  }

  body[data-page="profile"] .profile-page-header .topup-title h2 {
    font-size: 18px;
  }

  body[data-page="profile"] .profile-hero {
    min-height: 102px;
    gap: 16px;
    padding: 8px 0 18px;
  }

  body[data-page="profile"] .profile-avatar {
    width: 76px;
    height: 76px;
    flex-basis: 76px;
    font-size: 30px;
  }

  body[data-page="profile"] .profile-identity h2 {
    font-size: 16px;
  }

  body[data-page="profile"] .profile-identity p {
    font-size: 13px;
  }

  body[data-page="profile"] .profile-menu-section {
    padding: 8px 0;
  }

  body[data-page="profile"] .profile-menu-row {
    min-height: 44px;
    font-size: 14px;
  }
  body[data-page="home"] .home-mobile-banner {
    margin-top: 6px;
  }

  body[data-page="home"] .home-mobile-banner img {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 2172 / 724;
    object-fit: cover;
  }

  body[data-page="home"] .home-transaction-list .tx {
    min-height: 62px;
  }

  body[data-page="home"] .home-transaction-list .tx-icon {
    width: 36px;
    height: 36px;
  }
}

body[data-page="home"] .home-quick-action:nth-child(1),
body[data-page="home"] .home-quick-action:nth-child(2),
body[data-page="home"] .home-quick-action:nth-child(3),
body[data-page="home"] .home-quick-action:nth-child(4),
body[data-page="home"] .home-quick-action:nth-child(5),
body[data-page="home"] .home-quick-action:nth-child(6),
body[data-page="home"] .home-quick-action:nth-child(7),
body[data-page="home"] .home-quick-action:nth-child(8),
body[data-page="home"] .home-quick-action:nth-child(9) {
  background: var(--color-primary-gradient) !important;
}

body[data-page="home"] .home-quick-action:nth-child(1),
body[data-page="home"] .home-quick-action:nth-child(2),
body[data-page="home"] .home-quick-action:nth-child(3),
body[data-page="home"] .home-quick-action:nth-child(4),
body[data-page="home"] .home-quick-action:nth-child(5),
body[data-page="home"] .home-quick-action:nth-child(6),
body[data-page="home"] .home-quick-action:nth-child(7),
body[data-page="home"] .home-quick-action:nth-child(8),
body[data-page="home"] .home-quick-action:nth-child(9) {
  background: var(--color-primary-gradient) !important;
}

/* Use the hero card treatment across the complete quick-access grid. */
body[data-page="home"] .home-quick-action {
  isolation: isolate;
  overflow: hidden;
  border: 0 !important;
  background: var(--color-primary-gradient) !important;
  box-shadow: 0 10px 24px rgb(10 11 12 / 18%), inset 0 1px 0 rgb(255 255 255 / 30%) !important;
  color: #fff !important;
}

body[data-page="home"] .home-quick-action::before {
  position: absolute;
  z-index: -1;
  top: -58%;
  right: -22%;
  width: 115px;
  height: 115px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 50%;
  box-shadow: 0 0 0 12px rgb(255 255 255 / 5%), 0 0 0 28px rgb(255 255 255 / 3%);
  content: "";
  pointer-events: none;
}

body[data-page="home"] .home-quick-action::after {
  position: absolute;
  z-index: -1;
  bottom: -45%;
  left: -20%;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(255 255 255 / 16%), transparent 68%);
  content: "";
  pointer-events: none;
}

body[data-page="home"] .home-quick-action .home-quick-icon,
body[data-page="home"] .home-quick-action strong {
  position: relative;
  z-index: 1;
  color: #fff !important;
}

body[data-page="home"] .home-quick-action .home-quick-icon svg {
  color: #fff !important;
  stroke: currentColor !important;
}



body[data-page="home"] .home-quick-action:nth-child(9) {
  background: linear-gradient(135deg, #0f766e, #2dd4bf) !important;
  background: linear-gradient(135deg, #0f766e, #2dd4bf) !important;
  box-shadow: 0 10px 24px rgb(15 118 110 / 28%), 0 3px 8px rgb(45 212 191 / 18%) !important;
}

/* Match the add button to the Scan & pay tile accent. */
body[data-page] .mobile-nav .mobile-add {
  background: #000 !important;
  color: #fff !important;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 26%), inset 0 0 14px rgb(255 255 255 / 12%), 0 10px 24px rgb(0 0 0 / 24%), 0 3px 8px rgb(0 0 0 / 16%) !important;
}

body[data-page] .mobile-nav .mobile-add::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(255 255 255 / 24%) 0%, rgb(255 255 255 / 10%) 42%, transparent 76%);
  content: "";
  pointer-events: none;
  transform: translate(-50%, -50%);
}

body[data-page] .mobile-nav .mobile-add svg {
  position: relative;
  z-index: 1;
}

/* Keep quick-action accents above the legacy responsive tile overrides. */
body[data-page="home"] .home-quick-action:nth-child(1) {
  background: linear-gradient(135deg, #2563eb, #38bdf8) !important;
}

body[data-page="home"] .home-quick-action:nth-child(2) {
  background: linear-gradient(135deg, #7c3aed, #c084fc) !important;
}

body[data-page="home"] .home-quick-action:nth-child(3) {
  background: linear-gradient(135deg, #059669, #34d399) !important;
}

body[data-page="home"] .home-quick-action:nth-child(4) {
  background: linear-gradient(135deg, #ea580c, #fb923c) !important;
}

body[data-page="home"] .home-quick-action:nth-child(5) {
  background: linear-gradient(135deg, #0891b2, #22d3ee) !important;
}

body[data-page="home"] .home-quick-action:nth-child(6) {
  background: linear-gradient(135deg, #db2777, #f472b6) !important;
}

body[data-page="home"] .home-quick-action:nth-child(7) {
  background: linear-gradient(135deg, #ca8a04, #facc15) !important;
}

body[data-page="home"] .home-quick-action:nth-child(8) {
  background: linear-gradient(135deg, #475569, #94a3b8) !important;
}

body[data-page="home"] .home-quick-action,
body[data-page="home"] .home-quick-action strong,
body[data-page="home"] .home-quick-action .home-quick-icon,
body[data-page="home"] .home-quick-action .home-quick-icon svg {
  color: #fff !important;
}

body[data-page="home"] .home-quick-action .home-quick-icon svg {
  fill: none !important;
  stroke: currentColor !important;
}

#modal.flow-page.transaction-details-modal .modal-head {
  border-bottom-color: #eceef1;
  background: #fff;
}

#modal.flow-page.transaction-details-modal #modal-content {
  display: flex;
  max-width: none !important;
  min-height: 0;
  flex-direction: column;
  justify-content: center;
  padding: 0 clamp(22px, 8vw, 112px) calc(24px + env(safe-area-inset-bottom)) !important;
  background: #fff !important;
}

#modal.flow-page.transaction-details-modal .transaction-receipt {
  width: 100%;
  max-width: 760px;
  margin: auto;
  padding: clamp(28px, 6vh, 58px) 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#modal.flow-page.transaction-details-modal .transaction-receipt-top {
  justify-content: center;
  margin-bottom: 12px;
}

#modal.flow-page.transaction-details-modal .transaction-receipt-icon {
  width: 56px;
  height: 56px;
  border: 1px solid #e8eaed;
  border-radius: 50%;
  background: #f5f6f7;
}

#modal.flow-page.transaction-details-modal .transaction-receipt-icon.credit {
  border-color: #d1fae5;
  background: #ecfdf5;
}

#modal.flow-page.transaction-details-modal .transaction-receipt-icon.debit {
  border-color: #e8eaed;
  background: #f5f6f7;
  color: #30343a;
}

#modal.flow-page.transaction-details-modal .transaction-receipt-details {
  border-top: 1px solid #e9ebee;
}

#modal.flow-page.transaction-details-modal .transaction-receipt-details > div {
  padding: 17px 0;
  border-bottom: 1px solid #e9ebee;
}

#modal.flow-page.transaction-details-modal .transaction-receipt-note {
  justify-content: flex-start;
  text-align: left;
}

@media (max-width: 650px) {
  #modal.flow-page.transaction-details-modal #modal-content {
    justify-content: flex-start;
    padding: 8px 24px calc(24px + env(safe-area-inset-bottom)) !important;
  }

  #modal.flow-page.transaction-details-modal .transaction-receipt {
    margin: auto;
    padding: 28px 0;
  }
}

.progress-screen,
#auth-loading {
  position: fixed !important;
  z-index: 5000 !important;
  inset: 0 !important;
  display: grid;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  box-sizing: border-box;
  place-content: center;
  justify-items: center;
  gap: 12px;
  padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
  border: 0;
  border-radius: 0;
  background: #fff !important;
  box-shadow: none !important;
  color: #262a30;
  text-align: center;
}

.progress-screen[hidden],
#auth-loading[hidden] {
  display: none !important;
}

body[data-page="home"]:not(.auth-required):has(.welcome-overlay),
html:has(.welcome-overlay) {
  overflow: hidden;
}

body[data-page="home"]:not(.auth-required):has(.welcome-overlay) {
  height: 100dvh;
}

body[data-page="home"]:not(.auth-required):has(.welcome-overlay) .shell {
  min-height: 100dvh;
  height: 100dvh;
  overflow: hidden;
}

.welcome-overlay {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  justify-items: center;
  overflow: hidden;
  padding: calc(env(safe-area-inset-top) + clamp(22px, 5vh, 48px)) clamp(22px, 6vw, 64px) calc(env(safe-area-inset-bottom) + clamp(24px, 5vh, 48px));
  isolation: isolate;
  background:
    radial-gradient(ellipse at 50% 52%, rgb(235 230 255 / 82%) 0, rgb(247 245 255 / 66%) 29%, transparent 65%),
    linear-gradient(155deg, #fff 12%, #faf9ff 100%);
}

.welcome-orb {
  position: absolute;
  z-index: -1;
  width: min(72vw, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
}

.welcome-orb--top {
  top: 20%;
  right: -32%;
  background: radial-gradient(circle, rgb(160 234 247 / 38%), transparent 68%);
}

.welcome-orb--bottom {
  bottom: -32%;
  left: -30%;
  background: radial-gradient(circle, rgb(190 170 255 / 32%), transparent 70%);
}

.welcome-wallet-card {
  position: absolute;
  z-index: -1;
  top: 23%;
  right: max(4vw, calc((100vw - 560px) / 2));
  width: clamp(104px, 25vw, 146px);
  height: clamp(68px, 17vw, 92px);
  border: 1px solid rgb(255 255 255 / 84%);
  border-radius: 18px;
  background: linear-gradient(135deg, rgb(255 255 255 / 82%), rgb(236 231 255 / 64%));
  box-shadow: 0 16px 44px rgb(84 67 145 / 10%);
  transform: rotate(12deg);
}

.welcome-wallet-card span,
.welcome-wallet-card i,
.welcome-wallet-card b {
  position: absolute;
  display: block;
  border-radius: 999px;
  background: rgb(119 100 177 / 20%);
}

.welcome-wallet-card span {
  top: 20px;
  left: 16px;
  width: 43%;
  height: 6px;
}

.welcome-wallet-card i {
  bottom: 17px;
  left: 16px;
  width: 24%;
  height: 18px;
  background: rgb(119 100 177 / 30%);
}

.welcome-wallet-card b {
  right: 16px;
  bottom: 22px;
  width: 31%;
  height: 5px;
}

.welcome-brand {
  display: block;
  width: clamp(136px, 36vw, 168px);
  max-height: 54px;
  align-self: start;
  object-fit: contain;
}

.welcome-artwork {
  display: grid;
  width: min(100%, 400px);
  min-height: 0;
  place-items: center;
}

.welcome-artwork .welcome-illustration {
  display: block;
  width: min(100%, 36dvh, 340px);
  height: auto;
  max-height: 100%;
  object-fit: contain;
  overflow: visible;
}

.welcome-cta {
  display: flex;
  width: min(100%, 264px);
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 999px;
  background: #19191b;
  box-shadow: 0 5px 16px rgb(17 17 17 / 10%);
  color: #fff;
  font: 400 13px/1 Manrope, "DM Sans", sans-serif;
  letter-spacing: .09em;
  cursor: pointer;
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.welcome-cta span {
  font-size: 17px;
  font-weight: 300;
  letter-spacing: 0;
}

.welcome-cta:hover {
  background: #242427;
  box-shadow: 0 7px 18px rgb(17 17 17 / 13%);
  transform: translateY(-1px);
}

.welcome-cta:focus-visible {
  outline: 3px solid #9275e8;
  outline-offset: 4px;
}

@media (max-height: 700px) {
  .welcome-overlay {
    padding-top: calc(env(safe-area-inset-top) + 18px);
    padding-bottom: calc(env(safe-area-inset-bottom) + 20px);
  }

  .welcome-artwork .welcome-illustration {
    width: min(100%, 32dvh, 300px);
    max-height: 100%;
  }
}

.progress-card {
  display: grid;
  width: min(320px, calc(100vw - 48px));
  justify-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

.progress-spinner {
  width: 34px;
  height: 34px;
  margin-bottom: 5px;
  fill: none;
  stroke: #33383f !important;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 38 18;
  animation: progress-spin 1s linear infinite;
}

.progress-spinner path {
  stroke-dasharray: none;
}

#progress-title {
  margin: 0;
  color: #262a30 !important;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

#progress-detail {
  max-width: 28ch;
  margin: 0;
  color: #747b84 !important;
  font-size: 12px;
  line-height: 1.55;
}

#auth-loading {
  grid-auto-flow: row;
  color: #747b84;
  font-size: 13px;
}

#auth-loading::before {
  width: 30px;
  height: 30px;
  border: 2px solid #e8eaed;
  border-top-color: #33383f;
  border-radius: 50%;
  content: "";
  animation: progress-spin 1s linear infinite;
}

body:not(.auth-required):has(.shell[inert]):has(#modal[hidden]) .shell,
body:not(.auth-required):has(.shell[inert]):has(#modal[hidden]) .mobile-nav {
  visibility: hidden !important;
  pointer-events: none !important;
}

body:not(.auth-required):has(.shell[inert]):has(#modal[hidden]) #auth-loading[hidden] {
  display: grid !important;
}

.home-guest-access {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  text-align: center;
}

.home-guest-access p {
  margin: 0;
  color: rgb(255 255 255 / 78%);
  font-size: 12px;
}

.home-guest-access > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.home-guest-access button {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgb(255 255 255 / 40%);
  border-radius: 12px;
  background: rgb(255 255 255 / 18%);
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.home-guest-access button + button {
  background: #fff;
  color: #202329;
}

body.guest-mode .mobile-nav button:disabled,
body.guest-mode .shell > header button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

@media (prefers-reduced-motion: reduce) {
  .progress-spinner,
  #auth-loading::before {
    animation-duration: 2.5s;
  }
}

body[data-page="profile"] .profile-hero {
  min-height: 0;
  gap: 16px;
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid var(--color-border);
  border-radius: 22px;
  background: linear-gradient(135deg, #f7f8fa, #fff 72%);
  box-shadow: 0 8px 24px var(--color-shadow);
}

body[data-page="profile"] .profile-avatar {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  place-items: center;
  border: 1px solid #e6e8eb;
  border-radius: 19px;
  background: #fff;
  color: var(--color-text-primary);
  box-shadow: 0 4px 12px rgb(16 24 40 / 7%);
  font-size: 22px;
  font-weight: 700;
}

body[data-page="profile"] .profile-avatar svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

body[data-page="profile"] .profile-identity {
  min-width: 0;
}

body[data-page="profile"] .profile-identity h2 {
  margin: 5px 0 4px;
  font-size: clamp(21px, 4vw, 27px);
  letter-spacing: -.55px;
}

body[data-page="profile"] .profile-identity p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

body[data-page="profile"] .profile-badge {
  flex: 0 0 auto;
  margin-left: auto;
}

body[data-page="profile"] .profile-grid {
  align-items: start;
  gap: 16px;
  margin-top: 18px;
}

body[data-page="profile"] .profile-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 6px 20px var(--color-shadow);
}

body[data-page="profile"] .profile-shortcuts h3 {
  margin: 6px 0 14px;
  font-size: 18px;
}

@media (max-width: 650px) {
  body[data-page="profile"] .profile-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
    margin-top: 14px;
  }

  body[data-page="profile"] .profile-hero {
    gap: 12px;
    padding: 18px 15px;
    border-radius: 19px;
  }

  body[data-page="profile"] .profile-avatar {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
    border-radius: 16px;
  }

  body[data-page="profile"] .profile-badge {
    padding: 6px 8px;
    font-size: 10px;
  }

  body[data-page="profile"] .profile-card {
    padding: 17px;
    border-radius: 18px;
  }

}

@media (max-width: 360px) {
  body[data-page="profile"] .profile-hero {
    flex-wrap: wrap;
  }

  body[data-page="profile"] .profile-badge {
    margin-left: 62px;
  }
}

body[data-page]:not([data-page="home"]) .page-heading {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(10px, 3vw, 18px);
}

.inner-page-back {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  color: var(--color-text-primary);
  box-shadow: none !important;
  outline: none !important;
}

.inner-page-back:hover,
.inner-page-back:active,
.inner-page-back:focus,
.inner-page-back:focus-visible,
.flow-page .modal-head .icon-btn:hover,
.flow-page .modal-head .icon-btn:active,
.flow-page .modal-head .icon-btn:focus,
.flow-page .modal-head .icon-btn:focus-visible,
.topup-back:hover,
.topup-back:active,
.topup-back:focus,
.topup-back:focus-visible {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

.flow-page .modal-head .icon-btn,
.topup-back {
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

.inner-page-back i {
  display: grid;
  place-items: center;
}

.inner-page-back svg {
  width: 25px;
  height: 25px;
  fill: currentColor !important;
  stroke: none !important;
}

body[data-page]:not([data-page="home"]) .page-heading h1 {
  margin: 5px 0;
  font-size: clamp(21px, 3.5vw, 29px);
  line-height: 1.2;
}

body[data-page="transactions"] .shell,
body[data-page="accounts"] .shell,
body[data-page="profile"] .shell,
body[data-page="transactions"] .shell > main,
body[data-page="accounts"] .shell > main,
body[data-page="profile"] .shell > main {
  background: #fff;
}

body[data-page="transactions"] .shell > main {
  padding-top: 22px;
}

body[data-page="transactions"] #page > .panel {
  min-height: 0;
  padding: 20px clamp(16px, 3vw, 26px) 14px;
  border: 1px solid #eaecf0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 26px rgb(16 24 40 / 4%);
}

body[data-page="transactions"] #page > .panel > .section-top {
  min-height: 38px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f1f3;
}

body[data-page="transactions"] #page > .panel > .section-top h2 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.25px;
}

body[data-page="transactions"] #page > .panel > .section-top .text-btn {
  padding: 8px 12px;
  border: 1px solid #e6e8ec;
  border-radius: 10px;
  background: #fff;
  color: #344054;
  font-size: 12px;
  font-weight: 600;
}

body[data-page="transactions"] .toolbar {
  grid-template-columns: minmax(0, 1fr) minmax(145px, 190px);
  gap: 10px;
  margin: 16px 0 8px;
}

body[data-page="transactions"] .toolbar input,
body[data-page="transactions"] .toolbar select {
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid #e4e7ec;
  border-radius: 11px;
  background-color: #fff;
  color: #344054;
  font-size: 13px;
  box-shadow: none;
}

body[data-page="transactions"] .toolbar input::placeholder {
  color: #98a2b3;
}

body[data-page="transactions"] .toolbar input:focus,
body[data-page="transactions"] .toolbar select:focus {
  border-color: #98a2b3;
  outline: 3px solid rgb(16 24 40 / 7%);
}

body[data-page="transactions"] #tx-list .tx {
  min-height: 62px;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f1f3;
  border-radius: 0;
  background: #fff;
  transition: background-color .16s ease;
}

body[data-page="transactions"] #tx-list .tx:hover {
  background: #fafbfc;
}

body[data-page="transactions"] #tx-list .tx-icon {
  width: 36px;
  height: 36px;
  border: 1px solid #eaecf0;
  border-radius: 13px;
  background: #f8f9fb;
  color: #475467;
}

body[data-page="transactions"] #tx-list .tx.credit .tx-icon {
  border-color: #d1fadf;
  background: #ecfdf3;
  color: #039855;
}

body[data-page="transactions"] #tx-list .tx-info {
  display: grid;
  gap: 5px;
}

body[data-page="transactions"] #tx-list .tx-title {
  color: #344054;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}

body[data-page="transactions"] #tx-list .tx-info .tx-date {
  margin: 0;
  color: #98a2b3 !important;
  font-size: 12px;
}

body[data-page="transactions"] #tx-list .tx-amount {
  color: #475467;
  font-size: 13px;
  font-weight: 550;
}

body[data-page="transactions"] #tx-list .tx.credit .tx-amount {
  color: #31945b;
}

body[data-page="transactions"] #tx-list .tx.debit .tx-amount {
  color: #c84943;
}

body[data-page="transactions"] #tx-list .tx-amount small {
  display: table;
  justify-content: center;
  margin-left: auto;
  margin-top: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #475467;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.3;
}

body[data-page="transactions"] #tx-list .tx-amount small.pending {
  background: #fffaeb;
  color: #b54708;
}

body[data-page="transactions"] #tx-list .empty {
  padding: 34px 16px;
  color: #667085;
  text-align: center;
}

body[data-page="transactions"] .tx-pagination {
  min-height: 52px;
  font-size: 12px;
}

body[data-page="transactions"] .tx-pagination .text-btn {
  border-color: #e4e7ec;
  background: #fff;
  color: #344054;
}

@media (max-width: 650px) {
  body[data-page="transactions"] .toolbar {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 650px) {
  body[data-page]:not([data-page="home"]) .page-heading {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    margin-bottom: 20px;
  }

  .inner-page-back {
    width: 38px;
    height: 38px;
  }

  body[data-page]:not([data-page="home"]) .page-heading .date {
    display: none;
  }

  body[data-page]:not([data-page="home"]) .page-heading h1 {
    font-size: clamp(21px, 6vw, 26px);
  }

  .home-quick-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(8px, 2.5vw, 14px);
  }

  .home-quick-action {
    min-height: 0;
    aspect-ratio: 1;
    align-content: center;
    gap: 7px;
    padding: 8px;
    border: 1px solid rgb(255 255 255 / 60%);
    border-radius: 7px;
    background: linear-gradient(145deg, #f4f5f5, #e8e9e9) !important;
    color: var(--color-text-primary);
    box-shadow: inset 0 1px 0 #fff, 0 4px 10px rgb(16 24 40 / 8%);
  }

  .home-quick-icon {
    width: 38px;
    height: 38px;
    border-radius: 0;
    background: transparent !important;
    color: inherit !important;
  }

  .home-quick-icon svg {
    width: 27px;
    height: 27px;
  }

  .home-quick-action strong {
    overflow: visible;
    color: inherit;
    font-size: 9px;
    font-weight: 400;
    line-height: 1.25;
    text-overflow: clip;
    white-space: normal;
  }

}

@media (max-width: 380px) {
  .home-quick-action {
    min-height: 0;
  }

  .home-quick-icon {
    width: 34px;
    height: 34px;
  }

  .home-quick-icon svg {
    width: 24px;
    height: 24px;
  }
}

@media (min-width: 651px) {
  .home-quick-action {
    min-height: 126px;
    gap: 5px;
  }

  /* Give each quick action a distinct, high-contrast wallet accent. */
  body[data-page="home"] .home-quick-action {
    border-color: rgb(255 255 255 / 34%);
    color: #fff;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 38%), 0 8px 18px rgb(16 24 40 / 12%);
  }

  body[data-page="home"] .home-quick-action:nth-child(1) {
    background: linear-gradient(135deg, #2563eb, #38bdf8) !important;
  }

  body[data-page="home"] .home-quick-action:nth-child(2) {
    background: linear-gradient(135deg, #7c3aed, #c084fc) !important;
  }

  body[data-page="home"] .home-quick-action:nth-child(3) {
    background: linear-gradient(135deg, #059669, #34d399) !important;
  }

  body[data-page="home"] .home-quick-action:nth-child(4) {
    background: linear-gradient(135deg, #ea580c, #fb923c) !important;
  }

  body[data-page="home"] .home-quick-action:nth-child(5) {
    background: linear-gradient(135deg, #0891b2, #22d3ee) !important;
  }

  body[data-page="home"] .home-quick-action:nth-child(6) {
    background: linear-gradient(135deg, #db2777, #f472b6) !important;
  }

  body[data-page="home"] .home-quick-action:nth-child(7) {
    background: linear-gradient(135deg, #ca8a04, #facc15) !important;
  }

  body[data-page="home"] .home-quick-action:nth-child(8) {
    background: linear-gradient(135deg, #475569, #94a3b8) !important;
  }

  body[data-page="home"] .home-quick-action .home-quick-icon,
  body[data-page="home"] .home-quick-action .home-quick-icon svg,
  body[data-page="home"] .home-quick-action strong {
    color: #fff !important;
  }

  body[data-page="home"] .home-quick-action .home-quick-icon svg {
    fill: none;
    stroke: currentColor;
  }

  body[data-page="home"] .home-quick-action:hover {
    filter: saturate(1.08) brightness(1.04);
    transform: translateY(-2px);
  }

  .home-quick-icon {
    width: 56px;
    height: 56px;
  }

  .home-quick-icon svg {
    width: 34px;
    height: 34px;
  }

  .home-quick-action strong {
    font-size: 12px;
  }
}

#modal.flow-page.transaction-details-modal .modal-head .icon-btn {
  width: 40px;
  height: 40px;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

#modal.flow-page.transaction-details-modal .modal-head .icon-btn:hover,
#modal.flow-page.transaction-details-modal .modal-head .icon-btn:focus,
#modal.flow-page.transaction-details-modal .modal-head .icon-btn:focus-visible,
#modal.flow-page.transaction-details-modal .modal-head .icon-btn:active {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

#modal.flow-page.transaction-details-modal .modal-head::after {
  content: "Transaction Details";
  font-size: 15px;
  font-weight: 600;
}

#modal.flow-page.transaction-details-modal #modal-content {
  display: flex !important;
  max-width: none !important;
  min-height: 0;
  flex: 1 0 auto;
  flex-direction: column;
  justify-content: center;
  padding: 20px clamp(20px, 6vw, 72px) calc(22px + env(safe-area-inset-bottom)) !important;
}

#modal.flow-page.transaction-details-modal .transaction-receipt {
  display: flex;
  width: 100%;
  max-width: 440px !important;
  flex-direction: column;
  margin: auto;
  padding: 24px 0;
}

#modal.flow-page.transaction-details-modal .transaction-status-art {
  display: grid;
  width: clamp(116px, 32vw, 142px);
  height: clamp(116px, 32vw, 142px);
  align-self: center;
  place-items: center;
  margin: 0 auto 14px;
}

#modal.flow-page.transaction-details-modal .transaction-status-art img,
#modal.flow-page.transaction-details-modal .transaction-status-art svg,
#modal.flow-page.transaction-details-modal .transaction-status-fallback svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#modal.flow-page.transaction-details-modal .transaction-status-art svg,
#modal.flow-page.transaction-details-modal .transaction-status-fallback svg {
  fill: none;
  stroke: #aeb4bc;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#modal.flow-page.transaction-details-modal .transaction-status-art.pending svg,
#modal.flow-page.transaction-details-modal .transaction-status-fallback.pending svg,
#modal.flow-page.transaction-details-modal .transaction-status-art.unknown svg,
#modal.flow-page.transaction-details-modal .transaction-status-fallback.unknown svg {
  stroke: #e9a326;
}

#modal.flow-page.transaction-details-modal .transaction-status-art.completed svg,
#modal.flow-page.transaction-details-modal .transaction-status-fallback.completed svg {
  stroke: #19c75a;
}

#modal.flow-page.transaction-details-modal .transaction-status-fallback {
  display: block;
  width: 100%;
  height: 100%;
}

#modal.flow-page.transaction-details-modal .transaction-receipt h2 {
  margin: 0;
  color: #17191c;
  font-size: clamp(18px, 5vw, 21px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.35;
  text-align: center;
}

#modal.flow-page.transaction-details-modal .transaction-receipt-amount {
  margin: 10px 0 0;
  color: #090a0b;
  font-size: clamp(34px, 9vw, 43px);
  font-weight: 400;
  letter-spacing: -.5px;
  line-height: 1.2;
}

#modal.flow-page.transaction-details-modal .transaction-receipt-details {
  margin-top: clamp(38px, 10vh, 66px);
  border-top: 1px solid #eceef1;
}

#modal.flow-page.transaction-details-modal .transaction-receipt-details > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: start;
  gap: 12px;
  padding: 10px 4px;
  border-bottom: 1px solid #eceef1;
}

#modal.flow-page.transaction-details-modal .transaction-receipt-details span {
  color: #191b1e;
  font-size: 12px;
  line-height: 1.45;
}

#modal.flow-page.transaction-details-modal .transaction-receipt-details strong,
#modal.flow-page.transaction-details-modal .transaction-receipt-details code {
  min-width: 0;
  color: #191b1e;
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  overflow-wrap: anywhere;
  text-align: right;
}

#modal.flow-page.transaction-details-modal .transaction-receipt-note {
  justify-content: flex-start;
  margin: 15px 4px 0;
  font-size: 9px;
  text-align: left;
}

@media (max-width: 650px) {
  #modal.flow-page.transaction-details-modal #modal-content {
    justify-content: flex-start;
    padding: clamp(30px, 8vh, 68px) 24px calc(26px + env(safe-area-inset-bottom)) !important;
  }

  #modal.flow-page.transaction-details-modal .transaction-receipt {
    margin: 0 auto;
    padding: 0 0 24px;
  }

  #modal.flow-page.transaction-details-modal .transaction-status-art {
    margin-bottom: 12px;
  }

  #modal.flow-page.transaction-details-modal .transaction-receipt-details {
    margin-top: clamp(34px, 8vh, 58px);
  }
}

@media (max-width: 360px) {
  #modal.flow-page.transaction-details-modal #modal-content {
    padding-right: 18px !important;
    padding-left: 18px !important;
  }

  #modal.flow-page.transaction-details-modal .transaction-receipt-details > div {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 8px;
  }
}

body[data-page="transactions"] .shell > main > .page-heading,
body[data-page="accounts"] .shell > main > .page-heading,
body[data-page="profile"] .shell > main > .page-heading {
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  min-height: 48px;
  margin: 0 0 18px;
  padding: 6px 0;
  background: #fff;
}

body[data-page="transactions"] .shell > main > .page-heading > div,
body[data-page="accounts"] .shell > main > .page-heading > div,
body[data-page="profile"] .shell > main > .page-heading > div {
  grid-column: 2;
  grid-row: 1;
  text-align: center;
}

body[data-page="transactions"] .shell > main > .page-heading .inner-page-back,
body[data-page="accounts"] .shell > main > .page-heading .inner-page-back,
body[data-page="profile"] .shell > main > .page-heading .inner-page-back {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}

body[data-page="transactions"] .shell > main > .page-heading .eyebrow,
body[data-page="accounts"] .shell > main > .page-heading .eyebrow,
body[data-page="profile"] .shell > main > .page-heading .eyebrow,
body[data-page="transactions"] .shell > main > .page-heading #subheading,
body[data-page="accounts"] .shell > main > .page-heading #subheading,
body[data-page="profile"] .shell > main > .page-heading #subheading,
body[data-page="transactions"] .shell > main > .page-heading .date,
body[data-page="accounts"] .shell > main > .page-heading .date,
body[data-page="profile"] .shell > main > .page-heading .date {
  display: none;
}

body[data-page="transactions"] .shell > main > .page-heading h1,
body[data-page="accounts"] .shell > main > .page-heading h1,
body[data-page="profile"] .shell > main > .page-heading h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
}

@media (max-width: 650px) {
  body[data-page="transactions"] .shell > main > .page-heading,
  body[data-page="accounts"] .shell > main > .page-heading,
  body[data-page="profile"] .shell > main > .page-heading {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    min-height: 44px;
    margin-bottom: 15px;
    padding: 3px 0;
  }

  body[data-page="transactions"] .shell > main > .page-heading h1,
  body[data-page="accounts"] .shell > main > .page-heading h1,
  body[data-page="profile"] .shell > main > .page-heading h1 {
    font-size: 18px;
  }
}

html,
body,
body[data-page],
body[data-page] .shell,
body[data-page] .shell > main {
  background-color: #fff !important;
}

body.auth-required,
body.auth-required .flow-page.auth-modal,
body.auth-required .auth-modal #modal-content,
body.auth-required .auth-modal .auth-layout,
body.auth-required .auth-modal .auth-main {
  background: #fff !important;
}

body[data-page="transactions"] .shell > main > #page,
body[data-page="transactions"] #page > .panel {
  min-height: calc(100dvh - 180px);
  background: transparent;
}

body[data-page="transactions"] #page > .panel {
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body[data-page]:not([data-page="home"]) .page-heading h1,
body[data-page="transactions"] .activity-header h1,
#modal.flow-page.withdrawal-modal .modal-head::after,
#modal.flow-page.transaction-details-modal .modal-head::after {
  font-family: Manrope, sans-serif !important;
  font-size: 20px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  line-height: 1.2 !important;
}

body[data-page]:not([data-page="home"]) .inner-page-back,
body[data-page="transactions"] .activity-header button,
#modal.flow-page.withdrawal-modal .modal-head .icon-btn,
#modal.flow-page.transaction-details-modal .modal-head .icon-btn,
#modal.flow-page.transaction-modal .modal-head .icon-btn {
  width: 36px !important;
  height: 40px !important;
  flex: 0 0 36px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-page]:not([data-page="home"]) .inner-page-back svg,
body[data-page="transactions"] .activity-back svg,
#modal.flow-page.withdrawal-modal .modal-head .icon-btn svg,
#modal.flow-page.transaction-details-modal .modal-head .icon-btn svg,
#modal.flow-page.transaction-modal .modal-head .icon-btn svg,
.topup-page .topup-back svg {
  width: 20px !important;
  height: 20px !important;
  fill: currentColor !important;
  stroke: none !important;
}

body[data-page="transactions"] .activity-search-toggle svg {
  width: 20px !important;
  height: 20px !important;
  fill: none !important;
  stroke: currentColor !important;
}

#modal.flow-page.withdrawal-modal .modal-head::after {
  font-family: Manrope, sans-serif !important;
  font-size: 20px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
}

#modal.flow-page.transaction-details-modal .modal-head::after {
  font-family: Manrope, sans-serif !important;
  font-size: 20px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
}

@media (max-width: 650px) {
  body[data-page="transactions"] .activity-header h1 {
    font-family: Manrope, sans-serif !important;
    font-size: 20px !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
  }

  body[data-page="transactions"] .activity-back i {
    transform: none;
  }
}

#modal.flow-page.transaction-details-modal {
  background: #fff !important;
}

/* Final quick-action polish: color-matched depth without visible outlines. */
body[data-page="home"] .home-quick-action {
  border: 0 !important;
  box-shadow: none !important;
}

body[data-page="home"] .home-quick-action:nth-child(1) {
  box-shadow: 0 10px 24px rgb(37 99 235 / 28%), 0 3px 8px rgb(56 189 248 / 18%) !important;
}

body[data-page="home"] .home-quick-action:nth-child(2) {
  box-shadow: 0 10px 24px rgb(124 58 237 / 28%), 0 3px 8px rgb(192 132 252 / 18%) !important;
}

body[data-page="home"] .home-quick-action:nth-child(3) {
  box-shadow: 0 10px 24px rgb(5 150 105 / 28%), 0 3px 8px rgb(52 211 153 / 18%) !important;
}

body[data-page="home"] .home-quick-action:nth-child(4) {
  box-shadow: 0 10px 24px rgb(234 88 12 / 28%), 0 3px 8px rgb(251 146 60 / 18%) !important;
}

body[data-page="home"] .home-quick-action:nth-child(5) {
  box-shadow: 0 10px 24px rgb(8 145 178 / 28%), 0 3px 8px rgb(34 211 238 / 18%) !important;
}

body[data-page="home"] .home-quick-action:nth-child(6) {
  box-shadow: 0 10px 24px rgb(219 39 119 / 28%), 0 3px 8px rgb(244 114 182 / 18%) !important;
}

body[data-page="home"] .home-quick-action:nth-child(7) {
  box-shadow: 0 10px 24px rgb(202 138 4 / 28%), 0 3px 8px rgb(250 204 21 / 18%) !important;
}

body[data-page="home"] .home-quick-action:nth-child(8) {
  box-shadow: 0 10px 24px rgb(71 85 105 / 28%), 0 3px 8px rgb(148 163 184 / 18%) !important;
}

body[data-page="home"] .home-quick-action {
  isolation: isolate;
  overflow: hidden;
  border: 0 !important;
  background: var(--color-primary-gradient) !important;
  box-shadow: 0 10px 24px rgb(10 11 12 / 18%), inset 0 1px 0 rgb(255 255 255 / 30%) !important;
  color: #fff !important;
}

body[data-page="home"] .home-quick-action::before {
  position: absolute;
  z-index: -1;
  top: -58%;
  right: -22%;
  width: 115px;
  height: 115px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 50%;
  box-shadow: 0 0 0 12px rgb(255 255 255 / 5%), 0 0 0 28px rgb(255 255 255 / 3%);
  content: "";
  pointer-events: none;
}

body[data-page="home"] .home-quick-action::after {
  position: absolute;
  z-index: -1;
  bottom: -45%;
  left: -20%;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(255 255 255 / 16%), transparent 68%);
  content: "";
  pointer-events: none;
}

body[data-page="home"] .home-quick-action .home-quick-icon,
body[data-page="home"] .home-quick-action strong {
  position: relative;
  z-index: 1;
  color: #fff !important;
}

body[data-page="home"] .home-quick-action .home-quick-icon svg {
  color: #fff !important;
  stroke: currentColor !important;
}
body[data-page="profile"] .shell > main > .page-heading {
  display: none !important;
}

body[data-page="profile"] .shell > main {
  min-height: calc(100dvh - 66px);
  padding: 0 clamp(20px, 5vw, 56px) 40px;
}

body[data-page="profile"] .profile-page {
  width: min(100%, 620px);
  margin: 0 auto;
}

body[data-page="profile"] .profile-page-header {
  height: 84px;
  min-height: 84px;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  margin: 0 -8px;
  padding: 8px 0;
}

body[data-page="profile"] .profile-page-header .topup-title h2 {
  color: #242a22;
  font-size: 20px;
  font-weight: 500;
}

body[data-page="profile"] .profile-hero {
  display: flex;
  min-height: 112px;
  align-items: center;
  gap: 20px;
  margin: 0;
  padding: 8px 0 24px;
  border-bottom: 1px solid var(--color-border) !important;
}

body[data-page="profile"] .profile-avatar {
  width: 88px;
  height: 88px;
  flex: 0 0 88px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #e9eaeb;
  color: #30372e;
  font-size: 34px;
  font-weight: 600;
}

body[data-page="profile"] .profile-identity {
  min-width: 0;
}

body[data-page="profile"] .profile-identity h2 {
  overflow-wrap: anywhere;
  margin: 0 0 5px;
  color: var(--color-text-primary);
  font-size: 18px;
  font-weight: 650;
}

body[data-page="profile"] .profile-identity p {
  overflow-wrap: anywhere;
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 14px;
}

body[data-page="profile"] .profile-menu-section {
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}

body[data-page="profile"] .profile-menu-row {
  width: 100%;
  min-height: 46px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--color-text-primary);
  font: inherit;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}

body[data-page="profile"] .profile-menu-icon {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: #38413b;
}

body[data-page="profile"] .profile-menu-icon svg,
body[data-page="profile"] .profile-menu-chevron svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body[data-page="profile"] .profile-menu-chevron {
  display: grid;
  place-items: center;
  color: #667085;
}

body[data-page="profile"] .profile-menu-logout,
body[data-page="profile"] .profile-menu-logout .profile-menu-icon {
  color: #d92d20;
}

@media (max-width: 650px) {
  body[data-page="profile"] .shell > main {
    padding: 0 18px calc(88px + env(safe-area-inset-bottom));
  }

  body[data-page="profile"] .profile-page-header {
    height: 64px;
    min-height: 64px;
    margin: 0 -4px;
    padding: 4px 0;
  }

  body[data-page="profile"] .profile-hero {
    min-height: 102px;
    gap: 16px;
    padding: 8px 0 18px;
  }

  body[data-page="profile"] .profile-avatar {
    width: 76px;
    height: 76px;
    flex-basis: 76px;
    font-size: 30px;
  }

  body[data-page="profile"] .profile-identity h2 {
    font-size: 16px;
  }

  body[data-page="profile"] .profile-identity p {
    font-size: 13px;
  }

  body[data-page="profile"] .profile-menu-section {
    padding: 8px 0;
  }

  body[data-page="profile"] .profile-menu-row {
    min-height: 44px;
    font-size: 14px;
  }
}

@media (max-width: 350px) {
  body[data-page="profile"] .profile-page-header {
    height: 58px;
    min-height: 58px;
  }
}
