:root {
  --bg: #ece9e5;
  --panel: rgba(255, 255, 255, 0.62);
  --panel-strong: rgba(255, 255, 255, 0.86);
  --text: #050505;
  --muted: #686868;
  --line: rgba(0, 0, 0, 0.09);
  --dark: #181818;
  --red: #df272f;
  --gold: #c48a00;
  --blue: #3579ff;
  font-family: Arial, "Tahoma", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #d8d4cf;
  color: var(--text);
  display: grid;
  place-items: start center;
  direction: rtl;
  text-align: right;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.phone-shell {
  position: relative;
  width: min(100vw, 400px);
  min-height: 100vh;
  background: linear-gradient(180deg, #fafafa 0 11%, var(--bg) 48%, #d8d4cf 100%);
  overflow: hidden;
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.16);
}

.page {
  display: none;
  min-height: 100vh;
  padding: 24px 12px 166px;
}

#tasks-page {
  padding: 24px 16px 166px;
}

#join-page {
  padding: 29px 32px 166px;
}

#join-page .mini-mark {
  margin-right: 0;
  margin-top: -4px;
  transform: scale(0.95);
}

.page.active {
  display: block;
}

.brand-mark,
.mini-mark,
.profile-logo {
  width: 38px;
  height: 31px;
  position: relative;
}

.brand-mark::before,
.brand-mark::after,
.mini-mark::before,
.mini-mark::after,
.profile-logo::before,
.profile-logo::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 22px;
  height: 22px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(-45deg) skew(8deg, 8deg);
}

.brand-mark::after,
.mini-mark::after,
.profile-logo::after {
  width: 13px;
  height: 13px;
  top: 13px;
}

.home-hero {
  text-align: center;
  padding-top: 10px;
}

.home-hero .brand-mark {
  margin: 0 auto 4px;
}

.home-hero h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
}

.home-hero p {
  margin: 8px 0 10px;
  font-size: 22px;
  font-weight: 800;
}

.primary-cta,
.wide-cta {
  background: var(--dark);
  color: white;
  border-radius: 7px;
  padding: 14px 24px;
  font-weight: 800;
  box-shadow: 0 7px 15px rgba(0, 0, 0, 0.25);
}

.market-card {
  margin: 13px 4px 0;
  padding: 12px 12px 24px;
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.64);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.market-top {
  height: 45px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 0 10px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  direction: ltr;
  transition: background 0.35s ease;
}

.search-box input {
  width: 100%;
  border: 0;
  border-radius: 4px;
  padding: 8px 11px;
  direction: ltr;
  color: #777;
  font-size: 11px;
}

.market-tabs {
  height: 24px;
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 0 10px;
  background: #aeb2b7;
  direction: ltr;
}

.market-tabs button {
  background: transparent;
  color: white;
  padding: 0;
  font-size: 11px;
}

.store-login {
  padding: 0;
  background: transparent;
  color: white;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.cashback-row {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 36px 12px 34px;
  direction: ltr;
}

.cashback-row > div {
  direction: ltr;
}

.cashback-row h2 {
  margin: 0 0 6px;
  font-size: 13px;
}

.cashback-row p {
  margin: 0 0 8px;
  color: #333;
  font-size: 11px;
}

.cashback-row a {
  color: #f05a20;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  transition: color 0.35s ease;
}

.performers {
  border: 1px solid rgba(0, 0, 0, 0.11);
  border-radius: 4px;
  padding: 12px 0 10px;
  text-align: center;
}

.performers h3 {
  margin: 0 0 13px;
  font-size: 12px;
}

.avatar-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  direction: ltr;
}

.avatar-row article {
  display: grid;
  gap: 7px;
  justify-items: center;
  padding: 5px 6px 12px;
  border-left: 1px solid var(--line);
  font-size: 11px;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.avatar-row.switching article {
  opacity: 0.2;
  transform: translateY(7px);
}

.avatar-row article:last-child {
  border-left: 0;
}

.avatar-row img {
  width: 63px;
  height: 63px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px #e8e8e8;
  filter: grayscale(1);
}

.avatar-row .featured img {
  width: 70px;
  height: 70px;
  filter: none;
  box-shadow: 0 0 0 2px #c79500;
}

.avatar-row span {
  color: #686868;
  direction: ltr;
  white-space: nowrap;
}

.avatar-row strong {
  direction: ltr;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
}

.dots .active {
  background: #fff;
  transform: scale(1.16);
}

.ticker {
  margin: -25px 4px 0;
  padding: 22px 0 0;
  height: 205px;
  color: rgba(255, 255, 255, 0.62);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(30, 30, 30, 0.36));
  overflow: hidden;
  font-size: 13px;
  font-weight: 800;
}

.ticker::before,
.ticker::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  height: 38px;
  pointer-events: none;
}

.ticker::before {
  top: auto;
  background: linear-gradient(180deg, rgba(232, 230, 226, 0.8), transparent);
}

.ticker::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(70, 70, 70, 0.26), transparent);
}

#ticker-track {
  animation: ticker-rise 16s linear infinite;
}

.ticker p {
  direction: ltr;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0 3px;
}

@keyframes ticker-rise {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-50%);
  }
}

.title-bar {
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  direction: ltr;
  align-items: center;
  min-height: 38px;
}

.join-head {
  display: flex;
  direction: rtl;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
}

.title-bar h1 {
  margin: 0;
  text-align: center;
  font-size: 25px;
  font-weight: 900;
}

.icon-only {
  width: 34px;
  height: 34px;
  background: transparent;
}

.user-icon,
.nav-icon.user,
.nav-icon.home,
.nav-icon.list,
.nav-icon.grid,
.line-icon {
  position: relative;
}

.user-icon::before,
.nav-icon.user::before {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border: 2px solid currentColor;
  border-radius: 50%;
  left: 50%;
  top: 5px;
  transform: translateX(-50%);
}

.user-icon::after,
.nav-icon.user::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 9px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  left: 50%;
  bottom: 5px;
  transform: translateX(-50%);
}

.mini-mark {
  color: #aaa;
  transform: scale(0.9);
}

.stats-card {
  margin: 10px 4px 18px;
  padding: 24px 14px 22px;
  background: var(--panel-strong);
  border: 1px solid white;
  border-radius: 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 8px;
}

.stats-card div,
.asset-card div {
  min-width: 0;
  text-align: center;
  border-left: 1px solid var(--line);
}

.stats-card div:nth-child(3n),
.asset-card div:last-child {
  border-left: 0;
}

.stats-card span,
.asset-card span {
  display: block;
  color: #111;
  font-size: 12px;
  margin-bottom: 8px;
}

.stats-card strong {
  font-size: 20px;
}

.stats-card div:nth-child(n + 4) strong {
  font-size: 13px;
}

em {
  font-style: normal;
}

.task-tabs {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  direction: rtl;
}

#tasks-page .task-tabs,
#tasks-page .stats-card,
#tasks-page .task-summary-card,
#tasks-page .task-section-head,
#tasks-page .task-list,
#tasks-page .empty-state {
  width: min(100%, 368px);
  margin-left: auto;
  margin-right: auto;
}

.task-summary-card {
  margin-top: 11px;
  min-height: 154px;
  display: grid;
  gap: 16px;
  padding: 16px 17px 18px 18px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.07);
}

.task-summary-stats,
.task-summary-values {
  display: grid;
  direction: ltr;
  align-items: start;
}

.task-summary-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.task-summary-values {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.task-summary-card .task-summary-stats > div,
.task-summary-card .task-summary-values > div {
  display: grid;
  gap: 6px;
  text-align: center;
  min-width: 0;
  direction: rtl;
}

.task-summary-card .task-summary-stats span,
.task-summary-card .task-summary-values span {
  color: #7d8491;
  font-size: 14px;
}

.task-summary-card .task-summary-stats strong,
.task-summary-card .task-summary-values strong {
  color: #171717;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  direction: ltr;
}

.summary-fold {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: transparent;
  position: relative;
}

.summary-fold::before {
  content: "";
  position: absolute;
  inset: 10px 8px 8px;
  border-right: 2px solid #555;
  border-bottom: 2px solid #555;
  transform: rotate(45deg);
}

.task-section-head {
  display: flex;
  direction: rtl;
  align-items: center;
  justify-content: space-between;
  margin-top: 27px;
}

.task-section-head h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 900;
}

.task-section-head strong {
  font-size: 17px;
  font-weight: 900;
}

.task-tabs button {
  direction: rtl;
}

#tasks-page .task-tabs {
  margin-top: 18px;
}

.task-tabs button {
  position: relative;
  background: transparent;
  padding: 12px 0 13px;
  min-width: 46px;
  font-weight: 700;
}

.task-tabs .active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--blue);
}

.empty-state {
  min-height: 310px;
  display: grid;
  place-items: center;
  font-size: 15px;
}

.task-list {
  display: grid;
  gap: 14px;
  padding-top: 16px;
}

.task-card,
.task-ticket {
  width: 100%;
  padding: 18px 17px 19px;
  display: grid;
  gap: 12px;
  align-self: start;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.07);
}

.task-card-row {
  min-height: 24px;
  display: flex;
  direction: rtl;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
}

.task-card-row span,
.task-ticket span {
  flex: 0 0 108px;
  color: var(--muted);
  direction: rtl;
  text-align: right;
}

.task-card-row strong,
.task-card-row b {
  flex: 1 1 auto;
  min-width: 0;
  color: #20242a;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-order-row {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) 44px;
  direction: rtl;
}

.task-order-row span {
  grid-column: 1;
}

.task-order-row button {
  grid-column: 3;
  height: 25px;
  border-radius: 5px;
  background: #eef1f6;
  color: #4c5564;
  font-size: 12px;
  font-weight: 800;
}

.task-order-row strong {
  grid-column: 2;
}

.task-detail-btn,
.task-pay-btn {
  width: calc(100% - 2px);
  height: 44px;
  margin: 8px auto 0;
  border: 0;
  border-radius: 18px;
  background: #171717;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.task-detail-btn:disabled,
.task-pay-btn:disabled {
  opacity: .58;
  cursor: default;
}

.task-detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: end center;
  padding: 0 18px 24px;
  background: rgba(0, 0, 0, 0.42);
}

.task-detail-overlay.open {
  display: grid;
}

.task-detail-card {
  position: relative;
  width: min(100%, 376px);
  padding: 18px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.28);
}

.task-detail-close {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f1f3f7;
  color: #333;
  font-size: 18px;
}

.task-detail-top {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.task-detail-image {
  width: 118px;
  aspect-ratio: 1;
  align-self: flex-start;
  object-fit: cover;
  border-radius: 8px;
  background: #eef1f6;
}

.task-detail-copy {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.task-detail-copy h3 {
  margin: 0;
  width: 100%;
  font-size: 16px;
  line-height: 1.45;
  direction: ltr;
  text-align: left;
  overflow-wrap: anywhere;
}

.task-status-pill {
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: #ecfdf3;
  color: #157347;
  font-size: 12px;
  font-weight: 900;
}

.task-status-pill.frozen {
  background: #fff1f2;
  color: #c0263b;
}

.task-detail-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 17px 0 16px;
}

.task-detail-metrics div {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 8px;
  background: #f6f7f9;
}

.task-detail-metrics span {
  color: #7d8491;
  font-size: 12px;
}

.task-detail-metrics strong {
  font-size: 15px;
  overflow-wrap: anywhere;
}

.task-detail-action {
  width: 100%;
  height: 44px;
  border-radius: 8px;
  background: #171717;
  color: #fff;
  font-weight: 900;
}

.task-detail-card .task-detail-history {
  display: none;
}

.task-detail-action.is-loading {
  position: relative;
  pointer-events: none;
  color: transparent;
}

.task-detail-action.is-loading::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: task-pay-spin 0.8s linear infinite;
}

@keyframes task-pay-spin {
  to {
    transform: rotate(360deg);
  }
}

.task-detail-shortfall {
  margin: -4px 0 12px;
  color: #d32f2f;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.5;
}

.task-detail-shortfall[hidden] {
  display: none;
}

.task-detail-action:disabled {
  background: #a6acb6;
}

.task-pay-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  place-items: center;
  padding: 0 32px;
  background: rgba(0, 0, 0, 0.35);
}

.task-pay-confirm-overlay.open {
  display: grid;
}

.task-pay-confirm-dialog {
  width: 100%;
  max-width: 360px;
  padding: 28px 22px 22px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.task-pay-confirm-dialog p {
  margin: 0 0 22px;
  color: #111;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.55;
}

.task-pay-confirm-dialog div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  direction: ltr;
}

.task-pay-confirm-dialog button {
  height: 48px;
  border-radius: 24px;
  background: #f6f7f8;
  color: #333;
  font-size: 15px;
}

.task-pay-confirm-dialog button:last-child {
  background: #171717;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.task-pay-confirm-dialog button.is-loading {
  opacity: 0.75;
}

.task-detail-history {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.task-detail-history:empty {
  display: none;
}

.task-detail-history-collapse {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.task-detail-history-collapse summary {
  cursor: pointer;
  padding: 12px 0;
  color: #111;
  font-size: 14px;
  font-weight: 900;
  list-style: none;
}

.task-detail-history-collapse summary::-webkit-details-marker {
  display: none;
}

.task-detail-history-collapse summary::after {
  content: "⌄";
  float: right;
  color: #6b7280;
  font-size: 18px;
  line-height: 1;
}

.task-detail-history-collapse[open] summary::after {
  transform: rotate(180deg);
}

.task-detail-history-list {
  display: grid;
  gap: 12px;
  max-height: 280px;
  overflow-y: auto;
  padding-bottom: 4px;
}

.task-detail-history-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.task-detail-history-card img {
  width: 64px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  background: #eef1f6;
}

.task-detail-history-card h4 {
  display: -webkit-box;
  margin: 0 0 6px;
  overflow: hidden;
  color: #222;
  font-size: 13px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.task-detail-history-card p {
  margin: 0;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.7;
}

.task-detail-history-card strong {
  color: #111;
}

.join-head {
  padding-top: 2px;
}

.join-head p {
  margin: 0 0 7px;
  font-size: 18px;
}

.join-head span {
  font-size: 15px;
}

.join-title {
  margin: 20px 0 43px;
  font-size: 28px;
  font-weight: 900;
}

.wide-cta {
  width: 100%;
  border-radius: 24px;
  font-size: 18px;
  padding: 14px 24px;
}

.wallet-list,
.asset-card,
.quick-grid button,
.menu-list button {
  background: var(--panel);
  border: 1px solid white;
  border-radius: 8px;
}

.wallet-list {
  margin: 25px 0 25px;
  padding: 13px 14px;
  border-radius: 8px;
}

.wallet-list div {
  display: grid;
  grid-template-columns: auto 1fr 26px;
  direction: rtl;
  align-items: center;
  min-height: 46px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.wallet-list .line-icon {
  grid-column: 3;
}

.wallet-list div > span:not(.line-icon) {
  grid-column: 2;
}

.wallet-list strong {
  grid-column: 1;
  text-align: left;
  direction: ltr;
}

.wallet-list div:last-child {
  border-bottom: 0;
}

.rules h2 {
  margin: 0 0 15px;
  font-size: 21px;
}

.rules ol {
  margin: 0;
  padding-inline-start: 22px;
  line-height: 1.78;
  font-size: 16px;
}

.profile-head {
  padding-top: 16px;
  text-align: center;
}

.profile-logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 17px;
  color: white;
  background: #252525;
  border-radius: 50%;
  box-shadow: 0 7px 16px rgba(0, 0, 0, 0.24);
}

.profile-logo::before {
  width: 24px;
  height: 24px;
}

.profile-logo::after {
  width: 15px;
  height: 15px;
  top: 25px;
}

.vip-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  direction: ltr;
}

.vip-row strong {
  color: var(--gold);
  font-size: 18px;
}

.profile-head p {
  margin: 14px 0 13px;
  color: #333;
  direction: ltr;
}

.copy-btn {
  min-width: 88px;
  height: 41px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  color: #333;
}

.asset-card {
  margin: 18px 15px 20px;
  min-height: 91px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
}

.asset-card strong {
  font-size: 14px;
}

.asset-card div:nth-child(2) strong {
  font-size: 23px;
}

.quick-grid {
  margin: 0 15px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  direction: rtl;
}

.quick-grid button {
  direction: rtl;
}

.quick-grid button,
.menu-list button {
  height: 58px;
  display: grid;
  grid-template-columns: auto 1fr 30px;
  align-items: center;
  padding: 0 18px;
  color: #3d3d3d;
  text-align: start;
  font-size: 17px;
}

.quick-grid i,
.menu-list i {
  color: #777;
  font-style: normal;
  transform: none;
}

.menu-list {
  margin: 0 23px;
  display: grid;
  gap: 8px;
}

.sub-head {
  min-height: 44px;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  margin-bottom: 17px;
}

.sub-head h1 {
  margin: 0;
  text-align: center;
  font-size: 25px;
  font-weight: 900;
}

.back-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  color: #111;
  font-size: 24px;
  line-height: 30px;
  text-align: left;
}

.form-card {
  margin: 0 4px;
  padding: 16px;
  display: grid;
  gap: 14px;
  background: var(--panel);
  border: 1px solid white;
  border-radius: 8px;
}

.form-card p {
  margin: 0;
  color: #333;
  line-height: 1.7;
}

.sub-menu {
  margin-top: 8px;
}

.sub-page {
  padding: 18px 16px 98px;
}

.about-head {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 32px;
}

.about-head h1 {
  text-align: left;
  font-size: 24px;
}

.about-card {
  margin: 0;
  padding: 18px 16px;
  gap: 12px;
}

.about-card h2 {
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 1.4;
}

.about-card p {
  font-size: 16px;
  line-height: 1.85;
}

.compact-head {
  grid-template-columns: 42px 1fr 72px;
  margin-bottom: 18px;
}

.compact-head h1 {
  font-size: 24px;
}

.record-btn {
  height: 40px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7);
  color: #333;
  font-size: 14px;
}

.balance-panel {
  min-height: 154px;
  margin: 0 0 18px;
  padding: 36px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 20px;
}

.balance-panel span {
  display: block;
  width: fit-content;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.45);
  color: #444;
  font-size: 13px;
}

.balance-panel strong {
  font-size: 28px;
}

.balance-panel .mini-mark {
  color: #aaa;
}

.deposit-form {
  display: grid;
  gap: 12px;
}

.channel-label {
  font-weight: 800;
  margin-bottom: 1px;
}

.channel-row {
  height: 50px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  color: #777;
  font-size: 14px;
}

.channel-row input {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  outline: none;
  color: #333;
  font-size: 15px;
}

.channel-row input::placeholder {
  color: #777;
}

.channel-row i {
  font-style: normal;
  color: #222;
}

.submit-request {
  height: 50px;
  margin-top: 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.06);
  font-weight: 800;
}

.withdraw-balance {
  min-height: 154px;
  border-radius: 20px;
  padding: 36px 20px;
}

.tiny-logo {
  width: 86px;
  height: 86px;
  margin: 0;
  transform: scale(0.82);
}

.withdraw-card {
  min-height: 545px;
  padding: 24px 20px 22px;
  display: grid;
  gap: 14px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 20px;
}

.method-row {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 17px;
  height: 22px;
}

.method-row span {
  color: #c39a1a;
}

.withdraw-field {
  height: 48px;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: center;
}

.withdraw-icon {
  width: 18px;
  height: 18px;
  position: relative;
  color: #777;
  justify-self: center;
}

.withdraw-icon.bank::before {
  content: "";
  position: absolute;
  left: 1px;
  right: 1px;
  bottom: 2px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 1px;
}

.withdraw-icon.bank::after {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 18px;
  height: 8px;
  border-top: 2px solid currentColor;
  transform: skewX(-18deg);
}

.withdraw-icon.person::before {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  left: 5px;
  top: 1px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.withdraw-icon.person::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 8px;
  left: 2px;
  bottom: 0;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}

.withdraw-icon.wallet::before {
  content: "";
  position: absolute;
  inset: 3px 1px;
  border: 2px solid currentColor;
  border-radius: 2px;
}

.withdraw-icon.wallet::after {
  content: "";
  position: absolute;
  right: 3px;
  top: 8px;
  width: 5px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}

.withdraw-field input,
.amount-line input {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 15px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.82);
  outline: none;
  font-size: 16px;
}

.amount-line {
  display: grid;
  grid-template-columns: 28px 140px;
  gap: 12px;
  align-items: center;
  font-size: 14px;
  margin-top: 1px;
}

.withdraw-rules {
  display: grid;
  gap: 8px;
  color: #777;
  font-size: 13px;
  line-height: 1.24;
}

.withdraw-rules p {
  margin: 0;
}

.withdraw-submit {
  height: 50px;
  margin-top: 14px;
  border-radius: 15px;
  background: var(--dark);
  color: #fff;
  font-weight: 900;
}

.plain-form {
  display: grid;
  gap: 17px;
  padding-top: 3px;
}

.plain-field {
  display: grid;
  gap: 9px;
  font-weight: 800;
}

.plain-field input {
  width: 100%;
  height: 47px;
  padding: 0 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.38);
  color: #222;
  font-size: 16px;
  outline: none;
}

.plain-field input::placeholder {
  color: #6f7380;
}

.wide-submit {
  width: 100%;
  min-height: 49px;
  margin-top: 7px;
  border-radius: 999px;
  font-size: 17px;
  box-shadow: 0 13px 20px rgba(0, 0, 0, 0.2);
}

.sheet-action.wide-submit {
  border-radius: 999px;
}

.credit-page,
#credit-page {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: none;
  padding: 0;
  min-height: 100vh;
  pointer-events: none;
}

#credit-page.active {
  display: block;
  pointer-events: auto;
}

.credit-backdrop {
  min-height: 100vh;
  padding: 170px 24px 110px;
  background: rgba(0, 0, 0, 0.38);
}

.credit-modal {
  width: 100%;
  padding: 28px 25px 23px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.22);
}

.credit-modal h1 {
  margin: 0 0 18px;
  font-size: 22px;
}

.credit-card {
  position: relative;
  min-height: 324px;
  overflow: hidden;
  padding: 22px 18px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 86% 0%, rgba(255,255,255,.16) 0 65px, transparent 66px),
    radial-gradient(circle at 6% 100%, rgba(255,255,255,.08) 0 70px, transparent 71px),
    linear-gradient(145deg, #332713 0%, #765515 47%, #bd8d24 100%);
  color: #fff7e5;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.4);
}

.credit-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.credit-top strong {
  letter-spacing: 2px;
}

.credit-v {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffe58d, #c79729);
  color: #1f1b12;
  font-weight: 900;
}

.credit-top em {
  margin-left: auto;
  min-width: 45px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.18);
  font-style: normal;
}

.credit-chip {
  position: absolute;
  top: 105px;
  left: 18px;
  width: 54px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(180deg, #f4d27d, #bc8f2a);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.5);
}

.credit-chip::before {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  top: 10px;
  height: 4px;
  background: rgba(70, 54, 25, 0.48);
  box-shadow: 0 8px 0 rgba(70, 54, 25, 0.48), 0 16px 0 rgba(70, 54, 25, 0.48);
}

.credit-score {
  position: absolute;
  right: 24px;
  top: 73px;
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 8px solid #ffdc78;
  background: #fff8e8;
  color: #1d1b17;
  font-size: 27px;
  font-weight: 900;
}

.credit-meta {
  position: absolute;
  left: 18px;
  bottom: 20px;
  display: grid;
  gap: 5px;
}

.credit-meta span {
  color: rgba(255, 247, 229, 0.78);
  font-size: 13px;
}

.credit-meta strong {
  font-size: 16px;
}

.credit-close {
  width: 100%;
  height: 44px;
  margin-top: 20px;
  border-radius: 7px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.92);
  color: #222;
}

.auth-page {
  min-height: 100vh;
  padding: 0 24px 0;
  display: none;
  place-items: center;
  background: linear-gradient(180deg, #303145 0%, #27293b 100%);
}

.auth-page.active {
  display: grid;
}

.auth-head {
  display: block;
  margin-bottom: 28px;
  text-align: left;
}

.auth-head h1 {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 900;
}

.auth-head p {
  margin: 0;
  color: #333;
  font-size: 15px;
}

.auth-card {
  display: grid;
  gap: 20px;
  width: 100%;
  max-width: 352px;
  padding: 44px 32px 38px;
  background: rgba(239, 241, 247, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 11px;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.18);
  color: #070707;
}

.autofill-trap {
  position: fixed;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.login-card {
  min-height: 459px;
}

.register-card {
  padding-top: 48px;
  gap: 15px;
}

.auth-field {
  display: grid;
  gap: 8px;
}

.auth-field > span:not(.auth-icon) {
  font-size: 14px;
  color: #090909;
}

.auth-field input {
  width: 100%;
  height: 47px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  background: #e8f1ff;
  color: #111;
  font-size: 15px;
  outline: none;
}

.auth-field input::placeholder {
  color: rgba(0, 0, 0, 0.78);
}

.icon-field {
  grid-template-columns: 26px 1fr;
  align-items: center;
  gap: 12px;
}

.icon-field input {
  background: rgba(240, 241, 246, 0.58);
}

.auth-icon {
  width: 22px;
  height: 22px;
  position: relative;
  color: #050505;
}

.auth-icon.phone::before {
  content: "";
  position: absolute;
  inset: 1px 5px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.auth-icon.phone::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  left: 9px;
  bottom: 3px;
  border-radius: 50%;
  background: currentColor;
}

.auth-icon.user::before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  left: 7px;
  top: 2px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.auth-icon.user::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 9px;
  left: 3px;
  bottom: 1px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
}

.auth-icon.lock::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 12px;
  left: 3px;
  bottom: 2px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.auth-icon.lock::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 9px;
  left: 6px;
  top: 1px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
}

.auth-icon.shield::before {
  content: "";
  position: absolute;
  width: 15px;
  height: 18px;
  left: 4px;
  top: 1px;
  border: 2px solid currentColor;
  border-radius: 9px 9px 7px 7px;
  clip-path: polygon(50% 0, 100% 20%, 88% 78%, 50% 100%, 12% 78%, 0 20%);
}

.invite-note {
  margin: 4px 0 -2px;
  font-size: 13px;
  line-height: 1.55;
}

.auth-card .sheet-action {
  margin-top: 10px;
  min-height: 49px;
  border-radius: 24px;
  font-size: 16px;
  box-shadow: 0 12px 18px rgba(0, 0, 0, 0.22);
}

.text-link {
  width: fit-content;
  margin: 2px auto 0;
  padding: 7px 10px;
  background: transparent;
  color: #070707;
  font-weight: 500;
}

.bottom-nav {
  position: fixed;
  z-index: 10;
  left: 50%;
  bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: min(292px, calc(100vw - 74px));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  pointer-events: none;
  direction: ltr;
}

.phone-shell:has(.auth-page.active) .bottom-nav {
  display: none;
}

.phone-shell:has(#deposit-page.active) .bottom-nav,
.phone-shell:has(#withdraw-page.active) .bottom-nav {
  display: none;
}

.bottom-nav button {
  width: 56px;
  height: 56px;
  margin: auto;
  border-radius: 13px;
  color: white;
  background: rgba(255, 255, 255, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(9px);
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav button.active {
  color: #1f2328;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 1px 7px rgba(0, 0, 0, 0.24);
}

.nav-icon {
  display: block;
  width: 26px;
  height: 26px;
  margin: auto;
}

.nav-icon.home::before {
  content: "";
  position: absolute;
  width: 14px;
  height: 12px;
  border: 2px solid currentColor;
  border-top: 0;
  left: 5px;
  bottom: 4px;
}

.nav-icon.home::after {
  content: "";
  position: absolute;
  width: 13px;
  height: 13px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(45deg);
  left: 5px;
  top: 2px;
}

.nav-icon.list::before,
.nav-icon.list::after {
  content: "";
  position: absolute;
  left: 8px;
  width: 16px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 7px 0 currentColor, 0 14px 0 currentColor;
  top: 5px;
}

.nav-icon.list::after {
  left: 2px;
  width: 3px;
}

.nav-icon.grid::before {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border: 2px solid currentColor;
  left: 3px;
  top: 3px;
  box-shadow: 12px 0 0 -2px transparent, 12px 0 0 0 currentColor, 0 12px 0 0 currentColor, 12px 12px 0 0 currentColor;
}

.line-icon {
  display: inline-block;
  width: 21px;
  height: 21px;
  position: relative;
  color: currentColor;
}

.line-icon.coin::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.line-icon.coin::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 6px;
  width: 2px;
  height: 9px;
  background: currentColor;
  box-shadow: -3px 3px 0 -1px currentColor, 3px -3px 0 -1px currentColor;
}

.line-icon.lock::before {
  content: "";
  position: absolute;
  width: 15px;
  height: 11px;
  border: 2px solid currentColor;
  border-radius: 2px;
  left: 2px;
  bottom: 2px;
}

.line-icon.lock::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 9px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
  left: 5px;
  top: 1px;
}

.line-icon.doc::before,
.line-icon.card::before,
.line-icon.out::before,
.line-icon.shield::before,
.line-icon.people::before,
.line-icon.info::before,
.line-icon.phone::before,
.line-icon.logout::before {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 21px;
}

.line-icon.doc::before {
  content: "";
  inset: 3px 4px;
  border: 2px solid currentColor;
  border-radius: 2px;
  background: linear-gradient(currentColor, currentColor) 4px 5px / 8px 2px no-repeat,
    linear-gradient(currentColor, currentColor) 4px 10px / 8px 2px no-repeat;
}
.line-icon.card::before {
  content: "";
  inset: 5px 2px;
  border: 2px solid currentColor;
  border-radius: 3px;
}
.line-icon.card::after {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  top: 10px;
  height: 2px;
  background: currentColor;
}
.line-icon.out::before {
  content: "";
  left: 3px;
  top: 5px;
  width: 13px;
  height: 10px;
  border: 2px solid currentColor;
  border-left: 0;
  border-radius: 0 3px 3px 0;
}
.line-icon.out::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 10px;
  height: 10px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
.line-icon.shield::before {
  content: "";
  inset: 2px 4px;
  border: 2px solid currentColor;
  border-radius: 9px 9px 5px 5px;
  clip-path: polygon(50% 0, 100% 18%, 84% 82%, 50% 100%, 16% 82%, 0 18%);
}
.line-icon.people::before {
  content: "";
  left: 4px;
  top: 3px;
  width: 6px;
  height: 6px;
  border: 2px solid currentColor;
  border-radius: 50%;
  color: #5a3b76;
  box-shadow: 8px 2px 0 -1px currentColor;
}
.line-icon.people::after {
  content: "";
  position: absolute;
  left: 2px;
  bottom: 3px;
  width: 17px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 10px 10px 0 0;
  color: #5a3b76;
}
.line-icon.info::before { content: "i"; font-weight: 800; font-family: Arial, sans-serif; }
.line-icon.phone::before {
  content: "";
  inset: 3px 6px;
  border: 2px solid currentColor;
  border-radius: 7px;
}
.line-icon.phone::after {
  content: "";
  position: absolute;
  left: 9px;
  bottom: 5px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}
.line-icon.logout::before {
  content: "";
  left: 3px;
  top: 4px;
  width: 10px;
  height: 12px;
  border: 2px solid currentColor;
  border-right: 0;
  border-radius: 3px 0 0 3px;
}
.line-icon.logout::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 8px;
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 76px;
  transform: translateX(-50%) translateY(20px);
  min-width: 150px;
  padding: 10px 14px;
  border-radius: 19px;
  background: rgba(20, 20, 20, 0.88);
  color: white;
  text-align: center;
  opacity: 0;
  transition: 0.22s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.record-overlay {
  position: absolute;
  inset: 0;
  z-index: 35;
  display: none;
  padding: 333px 20px 0;
  background: rgba(0, 0, 0, 0.38);
}

.record-overlay.open {
  display: block;
}

.record-dialog {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 13px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
}

.record-dialog header {
  height: 54px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.record-dialog h2 {
  margin: 0;
  font-size: 17px;
}

.record-dialog header button {
  width: 32px;
  height: 32px;
  background: transparent;
  color: #777;
  font-size: 28px;
  line-height: 1;
}

.record-empty {
  min-height: 90px;
  display: grid;
  place-items: center;
  color: #888;
}

.record-listing {
  padding-bottom: 10px;
}

.record-page-list {
  min-height: 324px;
}

.record-row {
  min-height: 88px;
  padding: 0 17px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  font-size: 14px;
}

.record-row strong {
  white-space: nowrap;
}

.record-row time {
  color: #777;
}

.record-row span {
  color: #555;
}

.record-pager {
  height: 42px;
  padding: 0 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.record-pager button {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #111;
  color: #fff;
  font-size: 18px;
  line-height: 1;
}

.record-pager button:disabled {
  background: #e5e7eb;
  color: #9ca3af;
}

.record-pager span {
  min-width: 48px;
  direction: ltr;
  text-align: center;
  color: #555;
  font-size: 13px;
}

.logout-overlay {
  position: absolute;
  inset: 0;
  z-index: 36;
  display: none;
  place-items: center;
  padding: 0 34px;
  background: rgba(0, 0, 0, 0.38);
}

.logout-overlay.open {
  display: grid;
}

.logout-dialog {
  width: 100%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 12px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.logout-dialog p {
  margin: 0;
  padding: 28px 18px;
  font-size: 17px;
}

.logout-dialog div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.logout-dialog button {
  height: 48px;
  background: transparent;
  font-weight: 800;
}

.logout-dialog button:first-child {
  color: #111;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.logout-dialog button:last-child {
  color: #777;
}

.sheet {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
}

.sheet.open {
  display: block;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.34);
}

.sheet-panel {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(100vw, 400px);
  max-height: 78vh;
  overflow: auto;
  transform: translateX(-50%);
  padding: 18px 16px 24px;
  background: #f4f1ed;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.22);
}

.sheet-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.sheet-panel h2 {
  margin: 0;
  font-size: 21px;
}

.sheet-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  font-size: 25px;
  line-height: 1;
}

.sheet-body {
  display: grid;
  gap: 12px;
}

.sheet-card {
  padding: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid white;
  border-radius: 8px;
}

.sheet-card p {
  margin: 0;
  color: #333;
  line-height: 1.7;
}

.sheet-field {
  display: grid;
  gap: 7px;
}

.sheet-field span {
  color: var(--muted);
  font-size: 13px;
}

.sheet-field input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.86);
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.amount-grid button,
.sheet-action {
  min-height: 42px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-weight: 800;
}

.amount-grid button.active,
.sheet-action {
  background: var(--dark);
  color: white;
}

.sheet-action.secondary {
  background: rgba(255, 255, 255, 0.78);
  color: #222;
}

.record-list {
  display: grid;
  gap: 8px;
}

.record-list p {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  color: #333;
}

.record-list strong {
  direction: ltr;
}

@media (max-width: 360px) {
  .home-hero p {
    font-size: 20px;
  }

  .market-top {
    grid-template-columns: auto 1fr;
  }

  .market-top span {
    display: none;
  }

  .bottom-nav {
    width: calc(100vw - 52px);
    gap: 8px;
  }
}

/* Arabic layout overrides */
html[dir="rtl"] .page:not(#home-page) {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .title-bar {
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  direction: ltr;
}

html[dir="rtl"] .title-bar .user-icon {
  grid-column: 1;
}

html[dir="rtl"] .title-bar h1 {
  grid-column: 2;
  text-align: center;
}

html[dir="rtl"] .title-bar .mini-mark {
  grid-column: 3;
}

html[dir="rtl"] .task-summary-card {
  display: grid;
}

html[dir="rtl"] .task-summary-card .summary-fold {
  display: none;
}

html[dir="rtl"] .task-summary-card .task-summary-stats > div,
html[dir="rtl"] .task-summary-card .task-summary-values > div {
  direction: rtl;
  text-align: center;
}

html[dir="rtl"] .task-summary-card .task-summary-stats span,
html[dir="rtl"] .task-summary-card .task-summary-values span {
  text-align: center;
}

html[dir="rtl"] .task-section-head,
html[dir="rtl"] .task-tabs {
  direction: ltr;
}

html[dir="rtl"] .task-section-head h2,
html[dir="rtl"] .task-tabs button {
  direction: rtl;
}

html[dir="rtl"] .task-card-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  direction: ltr;
  align-items: center;
  gap: 8px;
}

html[dir="rtl"] .task-card-row span {
  grid-column: 1;
  direction: rtl;
  text-align: left;
}

html[dir="rtl"] .task-card-row b,
html[dir="rtl"] .task-card-row strong {
  grid-column: 2;
  text-align: left;
  direction: ltr;
}

html[dir="rtl"] .task-card-row b {
  direction: rtl;
}

html[dir="rtl"] .task-order-row {
  grid-template-columns: 96px minmax(0, 1fr) 44px;
}

html[dir="rtl"] .task-order-row span {
  grid-column: 1;
}

html[dir="rtl"] .task-order-row strong {
  grid-column: 2;
}

html[dir="rtl"] .task-order-row button {
  grid-column: 3;
}

html[dir="rtl"] .join-head,
html[dir="rtl"] .about-head,
html[dir="rtl"] .balance-panel,
html[dir="rtl"] .channel-row,
html[dir="rtl"] .method-row,
html[dir="rtl"] .wallet-list div,
html[dir="rtl"] .quick-grid button,
html[dir="rtl"] .menu-list button,
html[dir="rtl"] .withdraw-field {
  direction: rtl;
}

html[dir="rtl"] .sub-head {
  direction: rtl;
  grid-template-columns: 44px 1fr 44px;
}

html[dir="rtl"] .sub-head .back-btn {
  grid-column: 1;
  justify-self: start;
  text-align: center;
}

html[dir="rtl"] .sub-head h1 {
  grid-column: 2;
}

html[dir="rtl"] .compact-head {
  grid-template-columns: 72px 1fr 42px;
}

html[dir="rtl"] .compact-head .record-btn {
  grid-column: 1;
}

html[dir="rtl"] .compact-head .back-btn {
  grid-column: 3;
}

html[dir="rtl"] .quick-grid button,
html[dir="rtl"] .menu-list button {
  direction: ltr;
  grid-template-columns: auto 1fr 30px;
}

html[dir="rtl"] .quick-grid button .line-icon,
html[dir="rtl"] .menu-list button .line-icon {
  grid-column: 3;
}

html[dir="rtl"] .quick-grid button i,
html[dir="rtl"] .menu-list button i {
  grid-column: 1;
  text-align: left;
}

html[dir="rtl"] .quick-grid button,
html[dir="rtl"] .menu-list button {
  text-align: right;
}

html[dir="rtl"] .withdraw-field {
  grid-template-columns: 24px 1fr;
}

html[dir="rtl"] #profile-page {
  direction: ltr;
  text-align: center;
}

html[dir="rtl"] #profile-page .profile-head,
html[dir="rtl"] #profile-page .asset-card,
html[dir="rtl"] #profile-page .quick-grid,
html[dir="rtl"] #profile-page .menu-list {
  direction: ltr;
}

html[dir="rtl"] #profile-page .profile-head p {
  direction: rtl;
}

html[dir="rtl"] #profile-page .asset-card div {
  direction: rtl;
  text-align: center;
}

html[dir="rtl"] #profile-page .asset-card strong {
  direction: ltr;
}

html[dir="rtl"] #profile-page .quick-grid {
  grid-template-columns: 1fr 1fr;
}

html[dir="rtl"] #profile-page .quick-grid button,
html[dir="rtl"] #profile-page .menu-list button {
  direction: ltr;
  grid-template-columns: 30px 1fr auto;
  text-align: left;
}

html[dir="rtl"] #profile-page .quick-grid button .line-icon,
html[dir="rtl"] #profile-page .menu-list button .line-icon {
  grid-column: 1;
}

html[dir="rtl"] #profile-page .quick-grid button i,
html[dir="rtl"] #profile-page .menu-list button i {
  grid-column: 3;
  text-align: right;
}

html[dir="rtl"] #profile-page .quick-grid button,
html[dir="rtl"] #profile-page .menu-list button {
  direction: ltr;
}

html[dir="rtl"] #profile-page .quick-grid button,
html[dir="rtl"] #profile-page .menu-list button {
  unicode-bidi: isolate;
}

html[dir="rtl"] #profile-page .quick-grid button,
html[dir="rtl"] #profile-page .menu-list button {
  justify-items: stretch;
}

html[dir="rtl"] #profile-page .quick-grid button span:not(.line-icon),
html[dir="rtl"] #profile-page .menu-list button span:not(.line-icon) {
  direction: rtl;
  text-align: left;
}

html[dir="rtl"] #profile-page .menu-text {
  direction: rtl;
  text-align: left;
}

html[dir="rtl"] .sub-page {
  direction: ltr;
  text-align: left;
}

html[dir="rtl"] .sub-page .sub-head {
  direction: ltr;
  grid-template-columns: 44px 1fr 44px;
}

html[dir="rtl"] .sub-page .sub-head .back-btn {
  grid-column: 1;
}

html[dir="rtl"] .sub-page .sub-head h1 {
  grid-column: 2;
  text-align: center;
  direction: rtl;
}

html[dir="rtl"] .sub-page .compact-head {
  grid-template-columns: 42px 1fr 72px;
}

html[dir="rtl"] .sub-page .compact-head .back-btn {
  grid-column: 1;
}

html[dir="rtl"] .sub-page .compact-head .record-btn {
  grid-column: 3;
}

html[dir="rtl"] .sub-page .plain-form,
html[dir="rtl"] .sub-page .form-card,
html[dir="rtl"] .sub-page .deposit-form,
html[dir="rtl"] .sub-page .withdraw-card {
  direction: ltr;
  text-align: left;
}

html[dir="rtl"] .sub-page label,
html[dir="rtl"] .sub-page p,
html[dir="rtl"] .sub-page h2,
html[dir="rtl"] .sub-page span {
  direction: rtl;
  text-align: left;
}

html[dir="rtl"] .sub-page input {
  direction: rtl;
  text-align: left;
}

html[dir="rtl"] .sub-page input[inputmode="decimal"],
html[dir="rtl"] .sub-page strong,
html[dir="rtl"] .sub-page em {
  direction: ltr;
  text-align: left;
}

html[dir="rtl"] .sub-page .balance-panel,
html[dir="rtl"] .sub-page .channel-row,
html[dir="rtl"] .sub-page .method-row {
  direction: ltr;
}

html[dir="rtl"] .sub-page .withdraw-field {
  grid-template-columns: 24px 1fr;
  direction: ltr;
}

html[dir="rtl"] #credit-page,
html[dir="rtl"] #credit-page .credit-modal,
html[dir="rtl"] #credit-page .credit-card {
  direction: ltr;
  text-align: left;
}

html[dir="rtl"] #credit-page .credit-modal h1 {
  direction: rtl;
  text-align: left;
}

html[dir="rtl"] #credit-page .credit-top {
  direction: ltr;
}

html[dir="rtl"] #credit-page .credit-top em {
  margin-left: auto;
  margin-right: 0;
}

html[dir="rtl"] #credit-page .credit-chip {
  left: 18px;
  right: auto;
}

html[dir="rtl"] #credit-page .credit-score {
  right: 24px;
  left: auto;
}

html[dir="rtl"] #credit-page .credit-meta {
  left: 18px;
  right: auto;
  direction: rtl;
  text-align: left;
}

html[dir="rtl"] #about-page {
  direction: ltr;
  text-align: left;
}

html[dir="rtl"] #about-page .about-head {
  direction: ltr;
  justify-content: flex-start;
}

html[dir="rtl"] #about-page .about-head .back-btn {
  order: 0;
}

html[dir="rtl"] #about-page .about-head h1 {
  order: 1;
  direction: rtl;
  text-align: left;
}

html[dir="rtl"] #about-page .about-card,
html[dir="rtl"] #about-page .about-card h2,
html[dir="rtl"] #about-page .about-card p {
  direction: rtl;
  text-align: left;
}

html[dir="rtl"] .logout-dialog {
  direction: ltr;
}

html[dir="rtl"] .logout-dialog p {
  direction: rtl;
  text-align: center;
}

html[dir="rtl"] .logout-dialog div {
  direction: ltr;
}

html[dir="rtl"] .logout-dialog button {
  direction: rtl;
}

html[dir="rtl"] .logout-dialog button:first-child {
  grid-column: 2;
  border-right: 0;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
}

html[dir="rtl"] .logout-dialog button:last-child {
  grid-column: 1;
}

html[dir="rtl"] #join-page {
  direction: ltr;
  text-align: left;
}

html[dir="rtl"] #join-page .join-head {
  direction: ltr;
}

html[dir="rtl"] #join-page .join-head > div:first-child {
  text-align: left;
}

html[dir="rtl"] #join-page .join-head p,
html[dir="rtl"] #join-page .join-head span,
html[dir="rtl"] #join-page .join-title,
html[dir="rtl"] #join-page .rules h2,
html[dir="rtl"] #join-page .rules li {
  direction: rtl;
  text-align: left;
}

html[dir="rtl"] #join-page .wallet-list div {
  grid-template-columns: 26px 1fr auto;
  direction: ltr;
}

html[dir="rtl"] #join-page .wallet-list .line-icon {
  grid-column: 1;
}

html[dir="rtl"] #join-page .wallet-list div > span:not(.line-icon) {
  grid-column: 2;
  direction: rtl;
  text-align: left;
}

html[dir="rtl"] #join-page .wallet-list strong {
  grid-column: 3;
  text-align: right;
  direction: ltr;
}

html[dir="rtl"] #join-page .rules ol {
  direction: rtl;
  padding-inline-start: 22px;
  padding-inline-end: 0;
  text-align: left;
}

html[dir="rtl"] .auth-card,
html[dir="rtl"] .form-card,
html[dir="rtl"] .plain-form,
html[dir="rtl"] .deposit-form,
html[dir="rtl"] .withdraw-card,
html[dir="rtl"] .task-detail-card,
html[dir="rtl"] .record-dialog,
html[dir="rtl"] .logout-dialog {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] input {
  text-align: right;
}

html[dir="rtl"] input[inputmode="decimal"],
html[dir="rtl"] .balance,
html[dir="rtl"] #task-order-value,
html[dir="rtl"] #task-commission-total,
html[dir="rtl"] #task-detail-price,
html[dir="rtl"] #task-detail-commission,
html[dir="rtl"] .record-row strong,
html[dir="rtl"] time {
  direction: ltr;
  text-align: left;
}

html[dir="rtl"] .task-summary-values #task-order-value,
html[dir="rtl"] .task-summary-values #task-commission-total {
  text-align: center;
}

html[dir="rtl"] .icon-field {
  grid-template-columns: 1fr 26px;
}

html[dir="rtl"] .icon-field .auth-icon {
  grid-column: 2;
}

html[dir="rtl"] .icon-field input {
  grid-column: 1;
}

html[dir="rtl"] .record-dialog header {
  direction: rtl;
}

html[dir="rtl"] .task-detail-top {
  direction: rtl;
}

html[dir="rtl"] .task-detail-image {
  align-self: flex-end;
}

html[dir="rtl"] .task-detail-copy {
  width: 100%;
}

html[dir="rtl"] .task-detail-metrics {
  direction: rtl;
}

html[dir="rtl"] .task-detail-history-card {
  grid-template-columns: 1fr 64px;
  direction: rtl;
}

html[dir="rtl"] .task-detail-history-card img {
  grid-column: 2;
}

html[dir="rtl"] .task-detail-history-collapse {
  direction: rtl;
}

html[dir="rtl"] .task-detail-history-collapse summary::after {
  float: left;
}

/* Final physical LTR layout fixes for Arabic UI */
html[dir="rtl"] #deposit-page,
html[dir="rtl"] #withdraw-page,
html[dir="rtl"] #credit-page,
html[dir="rtl"] #about-page {
  direction: ltr;
  text-align: left;
}

html[dir="rtl"] #deposit-page .sub-head,
html[dir="rtl"] #withdraw-page .sub-head,
html[dir="rtl"] #about-page .about-head {
  direction: ltr;
}

html[dir="rtl"] #deposit-page .back-btn,
html[dir="rtl"] #withdraw-page .back-btn,
html[dir="rtl"] #about-page .back-btn {
  grid-column: 1;
  text-align: center;
}

html[dir="rtl"] #deposit-page .record-btn,
html[dir="rtl"] #withdraw-page .record-btn {
  grid-column: 3;
}

html[dir="rtl"] #deposit-page .sub-head h1,
html[dir="rtl"] #withdraw-page .sub-head h1,
html[dir="rtl"] #about-page .about-head h1 {
  direction: rtl;
  text-align: center;
}

html[dir="rtl"] #deposit-page .balance-panel,
html[dir="rtl"] #withdraw-page .balance-panel {
  direction: ltr;
}

html[dir="rtl"] #deposit-page .balance-panel > div,
html[dir="rtl"] #withdraw-page .balance-panel > div {
  direction: rtl;
  text-align: left;
}

html[dir="rtl"] #deposit-page .channel-label,
html[dir="rtl"] #withdraw-page .method-row,
html[dir="rtl"] #withdraw-page .withdraw-rules,
html[dir="rtl"] #withdraw-page .withdraw-rules p {
  direction: rtl;
  text-align: left;
}

html[dir="rtl"] #deposit-page .balance-panel > div {
  direction: ltr;
  text-align: left;
}

html[dir="rtl"] #deposit-page .balance-panel span {
  margin-left: 0;
  margin-right: auto;
  direction: rtl;
  text-align: left;
}

html[dir="rtl"] #deposit-page .balance-panel strong {
  display: block;
  direction: ltr;
  text-align: left;
}

/* Login and register pages match the Arabic source layout. */
html[dir="rtl"] .auth-page {
  padding: 0 24px;
  place-items: center;
  background: linear-gradient(180deg, #303145 0%, #27293b 100%);
}

html[dir="rtl"] .auth-card {
  width: min(100%, 352px);
  max-width: 352px;
  direction: rtl;
  text-align: right;
  background: rgba(239, 241, 247, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 9px;
  box-shadow: none;
}

html[dir="rtl"] .login-card {
  min-height: 459px;
  padding: 44px 32px 38px;
  align-content: center;
}

html[dir="rtl"] .register-card {
  min-height: 600px;
  padding: 48px 32px 38px;
  gap: 15px;
  align-content: center;
}

html[dir="rtl"] .auth-head {
  margin-bottom: 28px;
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .auth-head h1 {
  font-size: 26px;
  font-weight: 900;
}

html[dir="rtl"] .auth-head p {
  color: rgba(0, 0, 0, 0.75);
}

html[dir="rtl"] .auth-field {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .auth-field > span:not(.auth-icon) {
  text-align: right;
}

html[dir="rtl"] .auth-field input {
  height: 47px;
  border-radius: 8px;
  background: rgba(232, 241, 255, 0.9);
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .auth-field input::placeholder {
  color: rgba(0, 0, 0, 0.8);
}

html[dir="rtl"] .register-card .icon-field {
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 16px;
  direction: ltr;
  align-items: center;
}

html[dir="rtl"] .register-card .icon-field .auth-icon {
  grid-column: 1;
}

html[dir="rtl"] .register-card .icon-field input {
  grid-column: 2;
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .invite-note {
  direction: rtl;
  text-align: right;
  line-height: 1.45;
}

html[dir="rtl"] .auth-card .sheet-action {
  min-height: 49px;
  border-radius: 24px;
  font-size: 17px;
}

html[dir="rtl"] .text-link {
  color: #070707;
  text-align: center;
}

/* Source layout: Arabic text with physical LTR auth forms. */
html[dir="rtl"] .auth-card {
  direction: ltr;
  text-align: left;
}

html[dir="rtl"] .auth-head {
  direction: rtl;
  text-align: left;
}

html[dir="rtl"] .auth-field {
  direction: ltr;
  text-align: left;
}

html[dir="rtl"] .auth-field > span:not(.auth-icon) {
  direction: rtl;
  text-align: left;
}

html[dir="rtl"] .auth-field input {
  direction: rtl;
  text-align: left;
}

html[dir="rtl"] .login-card .auth-field input {
  text-align: left;
}

html[dir="rtl"] #login-account,
html[dir="rtl"] #login-password,
html[dir="rtl"] #register-phone,
html[dir="rtl"] #register-password,
html[dir="rtl"] #register-confirm,
html[dir="rtl"] #deposit-amount,
html[dir="rtl"] #withdraw-amount,
html[dir="rtl"] #withdraw-account {
  direction: ltr !important;
  text-align: left !important;
  unicode-bidi: plaintext;
}

html[dir="rtl"] .register-card .icon-field {
  grid-template-columns: 26px minmax(0, 1fr);
  direction: ltr;
}

html[dir="rtl"] .register-card .icon-field .auth-icon {
  grid-column: 1;
}

html[dir="rtl"] .register-card .icon-field input {
  grid-column: 2;
  direction: rtl;
  text-align: left;
}

html[dir="rtl"] .invite-note {
  direction: rtl;
  text-align: left;
}

html[dir="rtl"] #deposit-page .channel-row {
  direction: ltr;
}

html[dir="rtl"] #deposit-page .channel-row input {
  direction: ltr;
  text-align: left;
}

html[dir="rtl"] #withdraw-page .withdraw-card,
html[dir="rtl"] #withdraw-page .withdraw-field,
html[dir="rtl"] #withdraw-page .amount-line {
  direction: ltr;
  text-align: left;
}

html[dir="rtl"] #withdraw-page .withdraw-field input {
  direction: rtl;
  text-align: left;
}

html[dir="rtl"] #withdraw-page .amount-line {
  grid-template-columns: 28px 140px;
}

html[dir="rtl"] #withdraw-page .amount-line span {
  direction: ltr;
  text-align: left;
}

html[dir="rtl"] #withdraw-page .amount-line input {
  direction: ltr;
  text-align: left;
}

html[dir="rtl"] .record-dialog {
  direction: ltr;
  text-align: left;
}

html[dir="rtl"] .record-dialog header {
  direction: ltr;
}

html[dir="rtl"] .record-dialog h2 {
  direction: rtl;
  text-align: left;
}

html[dir="rtl"] .record-row {
  min-height: 54px;
  direction: ltr;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  padding: 0 17px;
}

html[dir="rtl"] .record-page-list {
  min-height: 324px;
}

html[dir="rtl"] .record-row strong {
  grid-column: 1;
  direction: ltr;
  text-align: left;
}

html[dir="rtl"] .record-row time {
  grid-column: 2;
  direction: ltr;
  text-align: center;
  white-space: nowrap;
}

html[dir="rtl"] .record-row span {
  grid-column: 3;
  direction: ltr;
  text-align: right;
  white-space: nowrap;
}

html[dir="rtl"] #credit-page .credit-modal,
html[dir="rtl"] #credit-page .credit-card {
  direction: ltr;
  text-align: left;
}

html[dir="rtl"] #credit-page .credit-modal h1 {
  direction: rtl;
  text-align: left;
}

html[dir="rtl"] #credit-page .credit-top {
  direction: ltr;
}

html[dir="rtl"] #credit-page .credit-top em {
  margin-left: auto;
  margin-right: 0;
}

html[dir="rtl"] #credit-page .credit-chip {
  left: 18px;
  right: auto;
}

html[dir="rtl"] #credit-page .credit-score {
  right: 24px;
  left: auto;
}

html[dir="rtl"] #credit-page .credit-meta {
  left: 18px;
  right: auto;
  direction: rtl;
  text-align: left;
}

html[dir="rtl"] #about-page .about-head {
  display: flex;
  direction: ltr;
  justify-content: flex-start;
}

html[dir="rtl"] #about-page .about-card,
html[dir="rtl"] #about-page .about-card h2,
html[dir="rtl"] #about-page .about-card p {
  direction: rtl;
  text-align: left;
}

html[dir="rtl"] .logout-dialog {
  direction: ltr;
}

html[dir="rtl"] .logout-dialog p {
  direction: rtl;
  text-align: center;
  white-space: normal;
}

html[dir="rtl"] .logout-dialog div {
  direction: ltr;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

html[dir="rtl"] .logout-dialog button:first-child {
  grid-column: 2;
  border-right: 0;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
  direction: rtl;
  text-align: center;
}

html[dir="rtl"] .logout-dialog button:last-child {
  grid-column: 1;
  direction: rtl;
  text-align: center;
}

/* Final Arabic physical layout guard */
html[dir="rtl"] .logout-dialog {
  direction: ltr;
  text-align: center;
}

html[dir="rtl"] .logout-dialog div {
  direction: ltr;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: column;
  align-items: stretch;
  min-height: 48px;
}

html[dir="rtl"] .logout-dialog button {
  width: 100%;
  height: 48px;
  min-height: 48px;
  margin: 0;
  padding: 0;
  display: grid;
  place-items: center;
  line-height: 1;
  direction: rtl;
  text-align: center;
}

html[dir="rtl"] .logout-dialog button:first-child {
  grid-column: 2;
  grid-row: 1;
  border-right: 0;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
}

html[dir="rtl"] .logout-dialog button:last-child {
  grid-column: 1;
  grid-row: 1;
}

html[dir="rtl"] .record-dialog {
  direction: ltr;
  text-align: left;
}

html[dir="rtl"] .record-dialog header {
  direction: ltr;
}

html[dir="rtl"] .record-dialog h2 {
  direction: rtl;
  text-align: left;
}

html[dir="rtl"] .record-row {
  min-height: 54px;
  direction: ltr;
  grid-template-columns: auto 1fr auto;
}

html[dir="rtl"] .record-row strong {
  grid-column: 1;
  direction: ltr;
  text-align: left;
}

html[dir="rtl"] .record-row time {
  grid-column: 2;
  direction: ltr;
  text-align: center;
}

html[dir="rtl"] .record-row span {
  grid-column: 3;
  direction: ltr;
  text-align: right;
}

html[dir="rtl"] #withdraw-page .balance-panel > div {
  direction: rtl;
  text-align: left;
}

html[dir="rtl"] #withdraw-page .balance-panel span {
  margin-left: 0;
  margin-right: auto;
}

html[dir="rtl"] #withdraw-page .withdraw-card {
  padding: 24px 20px 22px;
  direction: ltr;
  text-align: left;
}

html[dir="rtl"] #withdraw-page .method-row {
  direction: ltr;
  justify-content: flex-start;
  gap: 18px;
  padding-left: 0;
}

html[dir="rtl"] #withdraw-page .method-row strong {
  direction: rtl;
  text-align: left;
  font-weight: 600;
}

html[dir="rtl"] #withdraw-page .withdraw-field {
  direction: ltr;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  width: 100%;
}

html[dir="rtl"] #withdraw-page .withdraw-field input {
  direction: rtl;
  text-align: left;
  width: 100%;
}

html[dir="rtl"] #withdraw-page .amount-line {
  direction: ltr;
  grid-template-columns: 28px minmax(120px, 140px);
  gap: 12px;
  justify-content: flex-start;
}

html[dir="rtl"] #withdraw-page .withdraw-rules,
html[dir="rtl"] #withdraw-page .withdraw-rules p {
  direction: rtl;
  text-align: left;
}
