.mex-daily-usage-card {
  margin: 12px 0 14px;
  padding: 14px;
  border: 1px solid rgba(235, 184, 48, 0.3);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(235, 184, 48, 0.1), rgba(15, 67, 50, 0.2));
  color: #f5f5f5;
}

.mex-daily-usage-card.vip-usage {
  margin: 14px 0;
}

.mex-daily-usage-head,
.mex-daily-usage-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mex-daily-usage-head span,
.mex-daily-usage-stats small,
.mex-daily-usage-note {
  color: #aeb7c4;
}

.mex-daily-usage-head strong {
  color: #f2c94c;
  font-size: 20px;
}

.mex-daily-usage-stats {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mex-daily-usage-stats > span {
  min-width: 0;
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 4px;
}

.mex-daily-usage-stats > span:nth-child(2) {
  text-align: center;
}

.mex-daily-usage-stats > span:last-child {
  text-align: right;
}

.mex-daily-usage-stats b {
  overflow-wrap: anywhere;
  color: #fff;
}

.mex-daily-usage-note {
  display: block;
  margin-top: 10px;
  line-height: 1.5;
}

.mex-order-policy {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(35, 197, 134, 0.08);
  color: #9ebbad !important;
  line-height: 1.55;
}

.mex-invite-code-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid rgba(235, 184, 48, 0.24);
  border-radius: 12px;
  background: rgba(7, 18, 15, 0.72);
}

.mex-invite-code-label {
  color: #aeb7c4;
}

.mex-invite-code-value {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #fff;
  font-size: 16px;
  letter-spacing: 0.08em;
}

.mex-invite-code-copy {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  background: #26d391;
  color: #07140f;
  font-weight: 700;
}

.wallet-balance-grid {
  align-items: stretch !important;
}

.wallet-balance-grid > article {
  min-width: 0;
  min-height: 132px;
  height: auto !important;
  display: flex;
  flex-direction: column;
}

.wallet-balance-grid > article > strong {
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
  font-size: clamp(13px, 3.6vw, 18px) !important;
  line-height: 1.25;
}

.wallet-balance-grid > article > small {
  margin-top: auto;
  padding-top: 8px;
  overflow-wrap: anywhere;
  line-height: 1.4;
}

.wallet-action-summary strong,
.action-available strong {
  overflow-wrap: anywhere;
}

.action-available {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 10px;
}

.mex-action-underlying {
  grid-column: 1 / -1;
  text-align: right;
  color: #8e99a8;
  overflow-wrap: anywhere;
}

.mex-equity-estimate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px 10px;
  margin: 10px 0 14px;
  padding: 11px 12px;
  border: 1px solid rgba(235, 184, 48, 0.22);
  border-radius: 10px;
  background: rgba(235, 184, 48, 0.06);
}

.mex-equity-estimate-label {
  color: #aeb7c4;
}

.mex-equity-estimate-value {
  color: #f2c94c;
  overflow-wrap: anywhere;
  text-align: right;
}

.mex-equity-estimate-note {
  grid-column: 1 / -1;
  color: #7f8b99;
  line-height: 1.45;
}

.h5-wallet .token-card .mex-coin-wallet-actions {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.h5-wallet .token-card .mex-coin-wallet-actions > button {
  min-width: 0;
  min-height: 36px;
  padding: 7px 5px;
  border: 1px solid rgba(235, 184, 48, 0.24);
  border-radius: 9px;
  background: rgba(235, 184, 48, 0.06);
  color: #e7c55e;
  font: inherit;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.h5-wallet .token-card .mex-coin-wallet-actions.has-four {
  grid-auto-flow: row;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wallet-actions.h5-page.mex-standalone-shell {
  min-height: 100vh;
  padding-bottom: 32px;
  background: #090b0a;
  color: #f5f7f7;
}

.mex-operation-header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  min-height: 64px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 11, 10, 0.97);
}

.mex-operation-header h1 {
  grid-column: 2;
  margin: 0;
  font-size: 20px;
  text-align: center;
}

.mex-operation-back {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: #151816;
  color: #f3f5f4;
  font-size: 32px;
  line-height: 32px;
}

.mex-operation-page {
  display: grid;
  gap: 14px;
  width: min(100% - 32px, 560px);
  margin: 24px auto 0;
}

.mex-operation-card {
  padding: 20px;
  border: 1px solid rgba(223, 177, 47, 0.28);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(34, 36, 30, 0.96), rgba(14, 25, 20, 0.98));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.mex-operation-identity,
.mex-transfer-summary,
.mex-review-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mex-operation-identity {
  justify-content: flex-start;
}

.mex-operation-coin {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #f9df79, #b88619);
  color: #15110a;
  font-size: 22px;
  font-weight: 800;
}

.mex-operation-status {
  margin: 24px 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.2);
  text-align: center;
}

.mex-operation-status strong {
  color: #f1c94e;
  font-size: 20px;
}

.mex-operation-status p {
  margin: 10px 0 0;
  color: #9ca6a1;
  line-height: 1.6;
}

.mex-operation-disabled-field {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #9ca6a1;
}

.mex-transfer-summary strong {
  color: #f2c94c;
  overflow-wrap: anywhere;
  text-align: right;
}

.mex-transfer-form {
  display: grid;
  gap: 16px;
}

.mex-operation-label {
  display: grid;
  gap: 9px;
  color: #c5ccc8;
  font-size: 14px;
}

.mex-operation-input {
  box-sizing: border-box;
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  outline: none;
  background: #101311;
  color: #fff;
  font: inherit;
}

.mex-operation-input:focus {
  border-color: rgba(241, 201, 78, 0.7);
  box-shadow: 0 0 0 3px rgba(241, 201, 78, 0.08);
}

.mex-operation-amount-row {
  position: relative;
}

.mex-operation-amount-row .mex-operation-input {
  padding-right: 110px;
}

.mex-operation-unit {
  position: absolute;
  top: 18px;
  right: 58px;
  color: #aeb7b2;
}

.mex-operation-all {
  position: absolute;
  top: 8px;
  right: 8px;
  height: 38px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: #f2c94c;
}

.mex-operation-note,
.mex-operation-warning {
  color: #9ca6a1;
  line-height: 1.55;
}

.mex-operation-warning {
  color: #d7b85d;
}

.mex-operation-message {
  padding: 11px 13px;
  border-radius: 10px;
  background: rgba(218, 73, 85, 0.12);
  color: #ff8790;
  line-height: 1.45;
}

.mex-operation-message.success {
  background: rgba(39, 205, 145, 0.12);
  color: #3be0a4;
}

.mex-operation-primary,
.mex-operation-secondary {
  min-height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  font: inherit;
  font-weight: 700;
}

.mex-operation-primary {
  background: linear-gradient(100deg, #e9b934, #f5d76b);
  color: #161209;
}

.mex-operation-primary:disabled {
  opacity: 0.48;
}

.mex-operation-secondary {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #171a18;
  color: #f3f5f4;
}

.mex-transfer-review {
  display: grid;
  gap: 16px;
}

.mex-transfer-review[hidden] {
  display: none;
}

.mex-transfer-review h2 {
  margin: 0 0 4px;
  font-size: 19px;
}

.mex-review-row {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mex-review-row span {
  color: #9ca6a1;
}

.mex-review-row strong {
  max-width: 66%;
  overflow-wrap: anywhere;
  text-align: right;
}

.mex-review-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 10px;
}

@media (max-width: 390px) {
  .mex-daily-usage-stats {
    align-items: stretch;
    flex-direction: column;
  }

  .mex-daily-usage-stats > span,
  .mex-daily-usage-stats > span:nth-child(2),
  .mex-daily-usage-stats > span:last-child {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .mex-invite-code-row {
    grid-template-columns: 1fr auto;
  }

  .mex-invite-code-label {
    grid-column: 1 / -1;
  }

  .h5-wallet .token-card .mex-coin-wallet-actions {
    gap: 6px;
  }

  .h5-wallet .token-card .mex-coin-wallet-actions > button {
    font-size: 12px;
  }
}
