:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f7f7f9;
  --text: #171717;
  --muted: #676b75;
  --line: #e8e8ec;
  --red: #e50914;
  --red-soft: #fff0f2;
  --red-dark: #a90710;
  --shadow: 0 24px 70px rgba(23, 23, 23, 0.1);
  --radius: 18px;
  font-family: "Nunito Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.brand-name {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.brand-flag {
  width: 24px;
  height: 17px;
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 6px 14px rgba(23, 23, 23, 0.14);
}

.brand-pix {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(23, 23, 23, 0.12));
}

.brand-large {
  margin-bottom: 64px;
}

.login-brand-bar {
  display: flex;
  width: min(100%, 560px);
  min-height: 68px;
  padding: 12px 18px;
  border: 1px solid rgba(229, 9, 20, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 24px 60px rgba(229, 9, 20, 0.1),
    0 16px 42px rgba(23, 23, 23, 0.08);
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  overflow: hidden;
  place-items: center;
  border-radius: 12px;
  background: #ff0039;
  box-shadow: 0 16px 34px rgba(229, 9, 20, 0.24);
}

.brand-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.login-page {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 16% 16%, rgba(229, 9, 20, 0.12), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #ffffff 62%, #fff5f6 100%);
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: clamp(36px, 8vw, 110px);
  width: min(1120px, calc(100% - 40px));
  min-height: 100vh;
  align-items: center;
  margin: 0 auto;
  padding: 56px 0;
}

.login-copy h1 {
  max-width: 620px;
  margin-bottom: 18px;
  font-size: clamp(3.2rem, 8vw, 7rem);
  line-height: 0.95;
}

.rate-inline {
  white-space: nowrap;
}

.login-copy p:not(.eyebrow) {
  max-width: 560px;
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.7;
}

.login-card-wrap {
  --pet-y: -56px;
  position: relative;
  width: 100%;
  max-width: 380px;
  justify-self: end;
  padding-top: 78px;
}

.login-pet {
  position: absolute;
  top: 0;
  right: 10px;
  z-index: 2;
  width: clamp(136px, 15vw, 178px);
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 18px 22px rgba(229, 9, 20, 0.16));
  transform: translateY(var(--pet-y));
}

.login-card {
  width: 100%;
  position: relative;
  z-index: 1;
  min-height: 552px;
  padding: 28px 34px;
  border: 5px solid #fff;
  border-radius: 40px;
  background: linear-gradient(0deg, #ffffff 0%, #f7f7f9 100%);
  box-shadow: rgba(229, 9, 20, 0.22) 0 30px 30px -20px;
  transition: box-shadow 260ms ease, transform 260ms ease;
}

.login-card.is-switching {
  box-shadow: rgba(229, 9, 20, 0.28) 0 34px 38px -22px;
}

.heading {
  color: var(--red);
  font-size: 2rem;
  font-weight: 900;
  text-align: center;
  animation: loginItemIn 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-switch {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 18px;
  padding: 5px;
  border: 1px solid rgba(229, 9, 20, 0.08);
  border-radius: 18px;
  background: #fff;
  box-shadow: rgba(229, 9, 20, 0.12) 0 10px 14px -10px;
  animation: loginItemIn 620ms 70ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-tab {
  position: relative;
  z-index: 1;
  min-height: 40px;
  border: 0;
  border-radius: 14px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 900;
  background: transparent;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease,
    opacity 180ms ease;
}

.auth-tab:hover {
  color: var(--red);
  transform: translateY(-1px);
}

.auth-tab.is-active {
  color: #fff;
  background: var(--red);
  box-shadow: rgba(229, 9, 20, 0.28) 0 12px 18px -12px;
}

.auth-tab.is-tab-entering {
  animation: tabButtonIn 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.auth-tab.is-tab-leaving {
  animation: tabButtonOut 220ms ease;
}

.form {
  margin-top: 20px;
}

.form .input {
  width: 100%;
  margin-top: 15px;
  padding: 15px 20px;
  border: 0;
  border-inline: 2px solid transparent;
  border-radius: 20px;
  color: var(--text);
  background: #fff;
  box-shadow: rgba(229, 9, 20, 0.14) 0 10px 10px -5px;
  outline: none;
  transition: opacity 240ms ease, transform 240ms ease, margin 240ms ease, padding 240ms ease,
    max-height 260ms ease, box-shadow 180ms ease, border-color 180ms ease;
  animation: loginItemIn 620ms 130ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.form .input::placeholder {
  color: #aaa;
}

.form .input:focus {
  border-inline-color: var(--red);
}

.form .input:nth-of-type(2) {
  animation-delay: 180ms;
}

.form .input:nth-of-type(3) {
  animation-delay: 230ms;
}

.signup-only {
  max-height: 60px;
}

.signup-only.is-auth-hidden {
  max-height: 0;
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
  pointer-events: none;
}

.forgot-password {
  display: block;
  max-height: 24px;
  margin-top: 10px;
  margin-left: 10px;
  opacity: 1;
  overflow: hidden;
  transform: translateY(0);
  transition: opacity 220ms ease, transform 220ms ease, max-height 240ms ease, margin 240ms ease;
  animation: loginItemIn 620ms 280ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.forgot-password a {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
}

.forgot-password.is-auth-hidden {
  max-height: 0;
  margin-top: 0;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

.login-button {
  display: block;
  width: 100%;
  margin: 20px auto;
  padding-block: 15px;
  border: 0;
  border-radius: 20px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(45deg, #ff2b36 0%, var(--red) 100%);
  box-shadow: rgba(229, 9, 20, 0.38) 0 20px 10px -15px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  animation: loginItemIn 620ms 330ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.login-button:hover {
  transform: scale(1.03);
  box-shadow: rgba(229, 9, 20, 0.34) 0 23px 10px -20px;
}

.login-button:active {
  transform: scale(0.95);
  box-shadow: rgba(229, 9, 20, 0.34) 0 15px 10px -10px;
}

.login-button.is-button-switching {
  animation: buttonSwitch 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.social-account-container {
  margin-top: 25px;
  animation: loginItemIn 620ms 410ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.social-account-container .title {
  display: block;
  color: #aaa;
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
}

.social-accounts {
  display: flex;
  justify-content: center;
  gap: 15px;
  width: 100%;
  margin-top: 8px;
}

.social-button {
  display: grid;
  width: 48px;
  aspect-ratio: 1;
  place-content: center;
  border: 5px solid #fff;
  border-radius: 50%;
  background: linear-gradient(45deg, #111 0%, #707070 100%);
  box-shadow: rgba(229, 9, 20, 0.22) 0 12px 10px -8px;
  transition: transform 0.2s ease;
  animation: buttonPop 620ms 490ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.social-button .svg {
  height: 1.05em;
  margin: auto;
  fill: #fff;
}

.social-button:hover {
  transform: scale(1.2);
}

.social-button:active {
  transform: scale(0.9);
}

.agreement {
  display: block;
  margin-top: 15px;
  text-align: center;
}

.agreement a {
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 800;
}

.account-note {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  animation: loginItemIn 620ms 540ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.account-note button {
  padding: 0;
  border: 0;
  color: var(--red);
  font-weight: 900;
  background: transparent;
  transition: transform 180ms ease, opacity 180ms ease;
}

.account-note button:hover {
  transform: translateY(-1px);
}

.agreement {
  animation: loginItemIn 620ms 590ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-content: center;
  gap: 26px;
  color: #fff;
  background: rgba(229, 9, 20, 0.94);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.loading-screen.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.loading-screen p {
  margin: 0;
  font-weight: 900;
  text-align: center;
}

.loader-wrapper {
  position: relative;
  z-index: 1;
  width: 200px;
  height: 60px;
}

.loader-circle {
  position: absolute;
  left: 15%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #fff;
  transform-origin: 50%;
  animation: circleBounce 0.5s alternate infinite ease;
}

.loader-circle:nth-child(2) {
  left: 45%;
  animation-delay: 0.2s;
}

.loader-circle:nth-child(3) {
  right: 15%;
  left: auto;
  animation-delay: 0.3s;
}

.loader-shadow {
  position: absolute;
  top: 62px;
  left: 15%;
  z-index: -1;
  width: 20px;
  height: 4px;
  border-radius: 50%;
  background-color: rgba(80, 0, 8, 0.62);
  filter: blur(1px);
  transform-origin: 50%;
  animation: shadowPulse 0.5s alternate infinite ease;
}

.loader-shadow:nth-child(5) {
  left: 45%;
  animation-delay: 0.2s;
}

.loader-shadow:nth-child(6) {
  right: 15%;
  left: auto;
  animation-delay: 0.3s;
}

@keyframes circleBounce {
  0% {
    top: 60px;
    height: 5px;
    border-radius: 50px 50px 25px 25px;
    transform: scaleX(1.7);
  }

  40% {
    height: 20px;
    border-radius: 50%;
    transform: scaleX(1);
  }

  100% {
    top: 0;
  }
}

@keyframes shadowPulse {
  0% {
    transform: scaleX(1.5);
  }

  40% {
    opacity: 0.7;
    transform: scaleX(1);
  }

  100% {
    opacity: 0.4;
    transform: scaleX(0.2);
  }
}

@keyframes loginItemIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes tabButtonIn {
  from {
    opacity: 0.55;
    transform: translateY(7px) scale(0.94);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes tabButtonOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0.72;
    transform: translateY(-4px) scale(0.98);
  }
}

@keyframes buttonSwitch {
  0% {
    transform: scale(1);
    filter: brightness(1);
  }

  38% {
    transform: scale(0.96);
    filter: brightness(0.96);
  }

  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}

@keyframes buttonPop {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.82);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.app-page {
  padding-bottom: 140px;
  background:
    linear-gradient(180deg, rgba(229, 9, 20, 0.08), transparent 260px),
    #fff;
}

.app-header {
  position: sticky;
  top: 18px;
  z-index: 20;
  display: flex;
  width: min(1120px, calc(100% - 32px));
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 18px auto 0;
  padding: 12px 16px;
  border: 1px solid rgba(229, 9, 20, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 54px rgba(23, 23, 23, 0.08);
  backdrop-filter: blur(18px);
}

.desktop-nav {
  display: none;
  gap: 8px;
}

.desktop-nav a {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  font-weight: 900;
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
  color: #fff;
  background: var(--red);
}

.app-main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 20px;
}

.page-hero {
  max-width: 720px;
  margin-bottom: 34px;
}

.page-hero h1 {
  margin-bottom: 14px;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.96;
}

.page-hero p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.recharge-layout,
.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.65fr);
  gap: 22px;
  align-items: start;
}

.quote-card {
  width: min(1120px, 100%);
  scroll-margin-top: 110px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(145deg, #fff, #f8f8fa);
  box-shadow: var(--shadow);
}

.flow-step {
  display: none;
  scroll-margin-top: 110px;
}

.flow-step.is-active {
  display: block;
  animation: flowIn 420ms ease both;
}

.quote-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}

.quote-panel {
  display: grid;
  gap: 14px;
  min-height: 345px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 18px 40px rgba(23, 23, 23, 0.06);
}

.quote-label {
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 900;
}

.currency-select,
.receive-box,
.rate-box,
.pix-box {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #fbfbfc);
}

.currency-select {
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

.currency-select strong,
.receive-box strong,
.rate-box strong,
.pix-box strong {
  font-size: 1.36rem;
  line-height: 1;
}

.currency-select span:last-child,
.receive-box span,
.rate-box span,
.pix-box span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.coin-badge {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  background: #00b894;
}

.coin-cny {
  background: var(--red);
}

.quote-options {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.quote-input {
  display: grid;
  gap: 8px;
}

.quote-input span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
}

.quote-input input {
  width: 100%;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: 0;
  padding: 0 16px;
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 900;
  background: #fff;
  box-shadow: rgba(229, 9, 20, 0.1) 0 10px 10px -7px;
}

.quote-input input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.08);
}

.swap-badge {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  align-self: center;
  justify-self: center;
  border: 1px solid rgba(229, 9, 20, 0.13);
  border-radius: 999px;
  color: var(--red);
  background: #fff;
  box-shadow: 0 14px 26px rgba(23, 23, 23, 0.1);
}

.swap-badge svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.uiverse-button {
  position: relative;
  z-index: 1;
  overflow: hidden;
  min-height: 48px;
  padding: 12px 16px;
  border: 0;
  border-radius: 15px;
  color: #212121;
  font-size: 0.96rem;
  font-weight: 1000;
  background: #e8e8e8;
  box-shadow: 4px 8px 19px -3px rgba(0, 0, 0, 0.18);
  transition: all 250ms;
}

.uiverse-button::before {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: 0;
  height: 0;
  content: "";
  border-radius: 15px;
  background-color: #212121;
  box-shadow: 4px 8px 19px -3px rgba(0, 0, 0, 0.2);
  transition: all 250ms;
}

.uiverse-button:hover,
.uiverse-button.is-active {
  color: #e8e8e8;
}

.uiverse-button:hover::before,
.uiverse-button.is-active::before {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.uiverse-button:active {
  transform: scale(0.88);
}

.Btn {
  position: relative;
  display: flex;
  width: min(100%, 280px);
  height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  border: 0;
  border-radius: 15px;
  color: white;
  font-weight: 900;
  background-color: rgb(15, 15, 15);
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.103);
  cursor: pointer;
  transition-duration: 0.3s;
}

.svgIcon {
  width: 16px;
}

.svgIcon path {
  fill: white;
}

.Btn::before {
  position: absolute;
  top: 50%;
  left: -20px;
  width: calc(100% + 40px);
  aspect-ratio: 1 / 1;
  content: "";
  border-radius: 50%;
  background-color: white;
  mix-blend-mode: difference;
  transform: translate(-150%, -50%);
  transition-duration: 0.5s;
}

.Btn:hover::before {
  transform: translate(0, -50%);
}

.Btn:active {
  transform: translateY(4px);
  transition-duration: 0.3s;
}

.Btn.is-loading {
  pointer-events: none;
  opacity: 0.78;
}

.confirm-quote-button,
.submit-recharge-button,
.pay-recharge-button {
  margin: 24px auto 0;
}

.warning-box {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 24px;
  padding: 16px 18px;
  border: 1px solid rgba(229, 9, 20, 0.16);
  border-radius: 16px;
  color: var(--text);
  font-weight: 800;
  background: var(--red-soft);
}

.warning-box span {
  display: inline-grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--red);
}

.details-step {
  padding: 4px;
}

.details-head {
  display: flex;
  gap: 20px;
  align-items: start;
  justify-content: space-between;
  margin-bottom: 24px;
}

.details-head h2 {
  margin-bottom: 10px;
}

.details-head p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.55;
}

.details-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: 22px;
  align-items: start;
}

.details-grid > .field {
  grid-column: 1;
}

.details-summary {
  position: static;
  grid-column: 2;
  grid-row: 1 / span 2;
}

.checkout-step {
  padding: 4px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: 22px;
  align-items: stretch;
}

.checkout-panel {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(23, 23, 23, 0.06);
}

.checkout-panel dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.checkout-panel dl div {
  display: grid;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.checkout-panel dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.checkout-panel dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 900;
}

.pix-checkout-panel {
  align-content: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(229, 9, 20, 0.12), transparent 36%),
    #fff;
}

.pix-checkout-panel > strong {
  color: var(--red);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
}

.pix-checkout-panel p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.55;
}

.pix-result {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.pix-result[hidden] {
  display: none;
}

.pix-result img {
  width: min(220px, 100%);
  aspect-ratio: 1;
  justify-self: center;
  border: 1px solid rgba(229, 9, 20, 0.12);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(23, 23, 23, 0.08);
}

.pix-result label {
  display: grid;
  gap: 8px;
  text-align: left;
}

.pix-result label span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.pix-result textarea {
  min-height: 98px;
  font-size: 0.82rem;
  line-height: 1.45;
}

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

.pix-status {
  color: var(--red-dark) !important;
  font-size: 0.9rem;
}

.payment-backdrop {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: rgba(255, 240, 242, 0.42);
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(0);
  transition: opacity 300ms ease, backdrop-filter 300ms ease;
}

.payment-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
  backdrop-filter: blur(12px);
}

.payment-backdrop.is-hiding {
  animation: paymentBackdropOut 620ms ease both;
}

.payment-success {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 70;
  display: flex;
  width: 320px;
  height: 120px;
  overflow: hidden;
  border: 1px solid rgba(229, 9, 20, 0.24);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(23, 23, 23, 0.18);
  opacity: 0;
  filter: blur(2px);
  pointer-events: none;
  transform: translate(-50%, -46%) scale(0.94);
  transition: opacity 260ms ease, filter 260ms ease, transform 260ms ease;
}

.payment-success.is-visible {
  opacity: 1;
  filter: blur(0);
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
  animation: paymentToastIn 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.payment-success.is-hiding {
  pointer-events: none;
  animation: paymentToastOut 620ms cubic-bezier(0.65, 0, 0.35, 1) both;
}

.payment-success:hover {
  transform: translate(-50%, -50%) scale(1.03);
}

.payment-success-left {
  position: relative;
  display: flex;
  width: 112px;
  height: 120px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 14px;
  background-color: var(--red);
  cursor: pointer;
  transition: width 0.3s;
}

.payment-success:hover .payment-success-left {
  width: 100%;
}

.payment-success-right {
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  white-space: nowrap;
  cursor: pointer;
  transition: 0.3s;
}

.payment-success-text {
  margin-left: 18px;
  margin-right: 18px;
  color: #171717;
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0;
  white-space: normal;
}

.payment-card {
  position: absolute;
  z-index: 10;
  display: flex;
  width: 70px;
  height: 46px;
  flex-direction: column;
  align-items: center;
  border-radius: 6px;
  background-color: #ffd7dc;
  box-shadow: 9px 9px 9px -2px rgba(229, 9, 20, 0.34);
}

.payment-card-line {
  width: 65px;
  height: 13px;
  margin-top: 7px;
  border-radius: 2px;
  background-color: #ff7c8b;
}

.payment-buttons {
  width: 8px;
  height: 8px;
  margin: 10px 0 0 -30px;
  border-radius: 50%;
  background-color: var(--red);
  box-shadow: 0 -10px 0 0 var(--red-dark), 0 10px 0 0 #ff5b68;
  transform: rotate(90deg);
}

.payment-success.is-visible .payment-card,
.payment-success:hover .payment-card {
  animation: paymentSlideTop 1.2s cubic-bezier(0.645, 0.045, 0.355, 1) both;
}

.payment-post {
  position: absolute;
  top: 120px;
  bottom: 10px;
  z-index: 11;
  width: 63px;
  height: 75px;
  overflow: hidden;
  border-radius: 6px;
  background-color: #dddde0;
}

.payment-success.is-visible .payment-post,
.payment-success:hover .payment-post {
  animation: paymentSlidePost 1s cubic-bezier(0.165, 0.84, 0.44, 1) both;
}

.payment-post-line {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 47px;
  height: 9px;
  border-radius: 0 0 3px 3px;
  background-color: #545354;
}

.payment-post-line::before {
  position: absolute;
  top: -8px;
  width: 47px;
  height: 9px;
  content: "";
  background-color: #757375;
}

.payment-screen {
  position: absolute;
  top: 22px;
  right: 8px;
  width: 47px;
  height: 23px;
  border-radius: 3px;
  background-color: #ffffff;
}

.payment-dollar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  color: var(--red-dark);
  font-size: 0.84rem;
  font-weight: 900;
  text-align: center;
}

.payment-success.is-visible .payment-dollar,
.payment-success:hover .payment-dollar {
  animation: paymentFadeIn 0.3s 1s backwards;
}

.payment-numbers,
.payment-numbers-line2 {
  position: absolute;
  left: 25px;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  transform: rotate(90deg);
}

.payment-numbers {
  top: 52px;
  background-color: #838183;
  box-shadow: 0 -18px 0 0 #838183, 0 18px 0 0 #838183;
}

.payment-numbers-line2 {
  top: 68px;
  background-color: #aaa9ab;
  box-shadow: 0 -18px 0 0 #aaa9ab, 0 18px 0 0 #aaa9ab;
}

@keyframes paymentSlideTop {
  0% {
    transform: translateY(0);
  }

  50%,
  60% {
    transform: translateY(-70px) rotate(90deg);
  }

  100% {
    transform: translateY(-8px) rotate(90deg);
  }
}

@keyframes paymentSlidePost {
  50% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-70px);
  }
}

@keyframes paymentFadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes paymentToastIn {
  from {
    opacity: 0;
    filter: blur(8px);
    transform: translate(-50%, -44%) scale(0.9);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes paymentToastOut {
  from {
    opacity: 1;
    filter: blur(0);
    transform: translate(-50%, -50%) scale(1);
  }

  to {
    opacity: 0;
    filter: blur(10px);
    transform: translate(-50%, -62%) scale(0.86);
  }
}

@keyframes paymentBackdropOut {
  from {
    opacity: 1;
    backdrop-filter: blur(12px);
  }

  to {
    opacity: 0;
    backdrop-filter: blur(0);
  }
}

@keyframes flowIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.recharge-card,
.summary-card,
.support-card,
.support-info,
.history-list {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(145deg, #fff, #f8f8fa);
  box-shadow: var(--shadow);
}

.recharge-card,
.support-card {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
}

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

.field span,
.amount-group legend {
  color: #262626;
  font-size: 0.94rem;
  font-weight: 900;
}

.field input,
.money-input input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  outline: none;
  color: var(--text);
  background: #fff;
  box-shadow: rgba(229, 9, 20, 0.1) 0 10px 10px -7px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.field input,
.money-input input {
  height: 56px;
  padding: 0 16px;
}

textarea {
  min-height: 150px;
  resize: vertical;
  padding: 16px;
}

.field input:focus,
.money-input:focus-within,
textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.08);
}

small {
  min-height: 16px;
  color: var(--red-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.amount-group {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
}

.amount-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.amount-option {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text);
  font-weight: 900;
  background: #fff;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.amount-option:hover,
.amount-option.is-active {
  border-color: rgba(229, 9, 20, 0.32);
  color: var(--red);
  background: var(--red-soft);
  transform: translateY(-2px);
}

.uiverse-button.amount-option {
  border: 0;
  color: #212121;
  background: #e8e8e8;
}

.uiverse-button.amount-option:hover,
.uiverse-button.amount-option.is-active {
  color: #e8e8e8;
  background: #e8e8e8;
}

.money-input {
  display: grid;
  grid-template-columns: 58px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.money-input span {
  display: grid;
  place-items: center;
  color: var(--red);
  font-weight: 900;
  background: var(--red-soft);
}

.money-input input {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.check-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--muted);
  font-weight: 800;
}

.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--red);
}

.submit-button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 20px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(45deg, #ff2b36, var(--red));
  box-shadow: rgba(229, 9, 20, 0.3) 0 18px 30px -16px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: rgba(229, 9, 20, 0.35) 0 22px 36px -18px;
}

.submit-button.is-loading {
  pointer-events: none;
  opacity: 0.78;
}

.button-loader {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.submit-button.is-loading .button-loader {
  display: inline-block;
}

.summary-card {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 20px;
  padding: 28px;
}

.summary-kicker {
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.summary-card dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.summary-card div {
  display: grid;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.summary-card dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.summary-card dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 900;
}

.status-pill {
  padding: 14px 16px;
  border-radius: 18px;
  color: var(--red-dark);
  font-weight: 900;
  background: var(--red-soft);
}

.history-dashboard {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
  margin-bottom: 24px;
}

.history-wallet-panel,
.history-metrics {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(145deg, #fff, #f8f8fa);
  box-shadow: var(--shadow);
}

.history-wallet-panel {
  display: grid;
  min-height: 330px;
  place-items: center;
  padding: 26px;
  overflow: hidden;
}

.history-wallet {
  position: relative;
  display: flex;
  width: 280px;
  height: 230px;
  align-items: flex-end;
  justify-content: center;
  cursor: pointer;
  perspective: 1000px;
  transition: transform 0.4s ease;
}

.history-wallet::after {
  position: absolute;
  bottom: -32px;
  color: var(--red);
  content: "Passe para ver o valor";
  font-size: 0.82rem;
  font-style: italic;
  font-weight: 900;
}

.history-wallet:hover,
.history-wallet.is-open {
  transform: translateY(-5px);
}

.history-wallet-back {
  position: absolute;
  bottom: 0;
  z-index: 5;
  width: 280px;
  height: 200px;
  border-radius: 22px 22px 60px 60px;
  background: linear-gradient(145deg, #7d0710, var(--red-dark));
  box-shadow:
    inset 0 25px 35px rgba(0, 0, 0, 0.2),
    inset 0 5px 15px rgba(0, 0, 0, 0.22),
    0 18px 42px rgba(229, 9, 20, 0.18);
}

.history-wallet-card {
  position: absolute;
  bottom: 46px;
  left: 10px;
  z-index: 30;
  width: 260px;
  height: 140px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 16px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.24), transparent 32%),
    linear-gradient(135deg, #ff3f55, var(--red));
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.34),
    0 -4px 15px rgba(229, 9, 20, 0.14);
  animation: walletSlideIntoPocket 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), z-index 0s;
}

.history-wallet:hover .history-wallet-card,
.history-wallet.is-open .history-wallet-card {
  transform: translateY(-58px) scale(1.03) rotate(-2deg);
}

.history-wallet-card-inner {
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: space-between;
}

.history-wallet-card-top,
.history-wallet-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.history-wallet-card-top {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.history-wallet-chip {
  width: 34px;
  height: 25px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  background:
    linear-gradient(90deg, transparent 45%, rgba(255, 255, 255, 0.25) 46% 54%, transparent 55%),
    rgba(255, 255, 255, 0.22);
}

.history-wallet-label {
  display: block;
  margin-bottom: 3px;
  font-size: 0.58rem;
  font-weight: 900;
  opacity: 0.72;
  text-transform: uppercase;
}

.history-wallet-value {
  font-size: 0.78rem;
  font-weight: 900;
}

.history-wallet-number-wrapper {
  text-align: right;
}

.history-wallet-hidden {
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 2px;
}

.history-wallet-number {
  display: none;
  font-family: "Nunito Sans", monospace;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.history-wallet-card:hover .history-wallet-hidden {
  display: none;
}

.history-wallet-card:hover .history-wallet-number {
  display: block;
}

.history-pocket {
  position: absolute;
  bottom: 0;
  z-index: 40;
  width: 280px;
  height: 160px;
  color: #8b0711;
  filter: drop-shadow(0 15px 25px rgba(229, 9, 20, 0.24));
}

.history-pocket-content {
  position: absolute;
  top: 45px;
  z-index: 50;
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.history-balance-wrap {
  position: relative;
  width: 100%;
  height: 28px;
}

.history-balance-stars {
  color: #ffd8dc;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 4px;
  transition: 0.3s;
}

.history-balance-real {
  position: absolute;
  top: 0;
  left: 50%;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 900;
  opacity: 0;
  transform: translate(-50%, 10px);
  transition: 0.3s;
  white-space: nowrap;
}

.history-balance-label {
  color: #ffd8dc;
  font-size: 0.76rem;
  font-weight: 900;
}

.history-eye-icon-wrapper {
  position: relative;
  width: 20px;
  height: 20px;
  margin-top: 4px;
  opacity: 0.42;
  transition: 0.3s;
}

.history-eye-icon {
  position: absolute;
  top: 0;
  left: 0;
  stroke: #fff;
  transition: 0.3s;
}

.history-eye-open {
  opacity: 0;
}

.history-wallet:hover .history-eye-icon-wrapper,
.history-wallet.is-open .history-eye-icon-wrapper {
  opacity: 1;
}

.history-wallet:hover .history-balance-stars,
.history-wallet.is-open .history-balance-stars {
  opacity: 0;
}

.history-wallet:hover .history-balance-real,
.history-wallet.is-open .history-balance-real {
  opacity: 1;
  transform: translate(-50%, 0);
}

.history-wallet:hover .history-eye-slash,
.history-wallet.is-open .history-eye-slash {
  opacity: 0;
  transform: scale(0.5);
}

.history-wallet:hover .history-eye-open,
.history-wallet.is-open .history-eye-open {
  opacity: 1;
  transform: scale(1.1);
}

.history-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
}

.history-metrics div {
  display: grid;
  align-content: center;
  gap: 10px;
  min-height: 160px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.72);
}

.history-metrics span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.history-metrics strong {
  color: var(--text);
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1;
}

.history-list-head {
  display: grid;
  grid-template-columns: 130px 1fr minmax(130px, 0.34fr) 130px;
  gap: 18px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.history-list {
  display: grid;
  overflow: hidden;
}

.history-row {
  display: grid;
  grid-template-columns: 130px 1fr minmax(130px, 0.34fr) 130px;
  gap: 18px;
  align-items: center;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  transition: background 180ms ease, transform 180ms ease;
}

.history-row:hover {
  background: rgba(229, 9, 20, 0.035);
}

.history-row:last-child {
  border-bottom: 0;
}

.history-row strong {
  font-size: 1.05rem;
}

.history-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.history-row > span:last-child {
  color: var(--muted);
  font-weight: 900;
}

.history-values {
  display: grid;
  gap: 4px;
}

.history-values strong {
  font-size: 1rem;
}

.history-values p {
  margin: 0;
}

@keyframes walletSlideIntoPocket {
  from {
    opacity: 0;
    transform: translateY(-100px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.status {
  display: inline-flex;
  width: fit-content;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.status-done {
  color: #116a39;
  background: #eaf8f0;
}

.status-pending {
  color: var(--red-dark);
  background: var(--red-soft);
}

.support-info {
  display: grid;
  gap: 1px;
  overflow: hidden;
  background: var(--line);
}

.support-info article {
  display: grid;
  gap: 8px;
  padding: 26px;
  background: #fff;
}

.support-info span {
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.support-info strong {
  font-size: 1.5rem;
  line-height: 1.05;
}

.support-info p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
  gap: 22px;
  align-items: start;
}

.settings-card,
.referral-card {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(145deg, #fff, #f8f8fa);
  box-shadow: var(--shadow);
}

.settings-card {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
}

.referral-card {
  display: grid;
  gap: 22px;
  overflow: hidden;
  padding: clamp(22px, 4vw, 34px);
  background:
    radial-gradient(circle at 82% 10%, rgba(229, 9, 20, 0.16), transparent 30%),
    linear-gradient(145deg, #fff, #fff7f8);
}

.referral-head h2 {
  max-width: 520px;
  margin: 8px 0 10px;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1;
}

.referral-head p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.6;
}

.referral-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(229, 9, 20, 0.12);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 32px rgba(229, 9, 20, 0.08);
}

.referral-code span,
.referral-progress span,
.reward-item span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.referral-code strong {
  color: var(--red);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0;
}

.referral-progress {
  display: grid;
  gap: 12px;
}

.referral-progress > div:first-child {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.referral-progress strong {
  font-size: 1.18rem;
  font-weight: 900;
}

.progress-track {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(229, 9, 20, 0.1);
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), #ff5b68);
  box-shadow: 0 10px 20px rgba(229, 9, 20, 0.22);
}

.reward-list {
  display: grid;
  gap: 10px;
}

.reward-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.reward-item.is-current {
  border-color: rgba(229, 9, 20, 0.22);
  background: var(--red-soft);
}

.reward-item strong {
  color: var(--red);
  font-size: 1.05rem;
  font-weight: 900;
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 12px;
  left: 0;
  z-index: 40;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
  width: fit-content;
  margin: 0 auto;
  min-height: 68px;
  padding: 8px 10px;
  border: 1px solid rgba(229, 9, 20, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 54px rgba(23, 23, 23, 0.16);
  backdrop-filter: blur(18px);
  transition: min-height 180ms ease, padding 180ms ease, box-shadow 180ms ease;
  will-change: min-height;
}

.bottom-nav.is-dock-hovered,
.bottom-nav.is-touching {
  min-height: 92px;
  box-shadow: 0 24px 68px rgba(23, 23, 23, 0.18);
}

.bottom-item {
  --dock-size: 50px;
  position: relative;
  display: inline-flex;
  width: var(--dock-size);
  height: var(--dock-size);
  align-items: center;
  justify-content: center;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: #fff;
  box-shadow: 0 8px 18px rgba(23, 23, 23, 0.08);
  outline: none;
  cursor: pointer;
  transition: width 180ms cubic-bezier(0.22, 1, 0.36, 1), height 180ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 190ms cubic-bezier(0.22, 1, 0.36, 1), color 170ms ease, background 170ms ease,
    border-color 170ms ease, box-shadow 170ms ease;
  will-change: width, height, transform;
}

.bottom-item:hover,
.bottom-item:focus-visible,
.bottom-item.is-touching,
.bottom-item.is-active {
  border-color: rgba(229, 9, 20, 0.28);
  color: #fff;
  background: var(--red);
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(229, 9, 20, 0.24);
}

.bottom-item svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.bottom-label {
  position: absolute;
  top: -34px;
  left: 50%;
  width: max-content;
  padding: 5px 9px;
  border: 1px solid rgba(229, 9, 20, 0.12);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(23, 23, 23, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(0);
  transition: opacity 200ms ease, transform 200ms ease;
  white-space: nowrap;
}

.bottom-item:hover .bottom-label,
.bottom-item:focus-visible .bottom-label,
.bottom-item.is-touching .bottom-label {
  opacity: 1;
  transform: translateX(-50%) translateY(-10px);
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 96px;
  z-index: 80;
  max-width: min(420px, calc(100vw - 40px));
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--text);
  font-weight: 800;
  background: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 840px) {
  .app-page {
    padding-bottom: 190px;
  }

  .login-shell,
  .recharge-layout,
  .support-layout,
  .settings-layout,
  .quote-grid,
  .details-grid {
    grid-template-columns: 1fr;
  }

  .login-shell {
    gap: 28px;
    padding: 28px 0 42px;
  }

  .brand-large {
    margin-bottom: 44px;
  }

  .login-brand-bar {
    width: 100%;
    min-height: 66px;
    padding: 11px 14px;
    border-radius: 22px;
  }

  .login-card-wrap {
    --pet-y: -35px;
    max-width: none;
    justify-self: stretch;
    padding-top: 74px;
  }

  .login-pet {
    right: 12px;
    width: 146px;
  }

  .desktop-nav {
    display: none;
  }

  .bottom-nav {
    display: flex;
  }

  .app-main {
    padding-top: 48px;
    padding-bottom: 120px;
  }

  .summary-card {
    position: static;
  }

  .history-dashboard {
    grid-template-columns: 1fr;
  }

  .history-metrics {
    grid-template-columns: 1fr;
  }

  .history-metrics div {
    min-height: 112px;
  }

  .quote-grid {
    gap: 14px;
  }

  .swap-badge {
    transform: rotate(90deg);
  }

  .details-head {
    display: grid;
  }

  .details-grid > .field,
  .details-summary {
    grid-column: auto;
    grid-row: auto;
  }

  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .back-button {
    width: fit-content;
  }
}

@media (max-width: 560px) {
  .login-shell,
  .app-main,
  .app-header {
    width: min(100% - 28px, 1120px);
  }

  .login-copy h1,
  .page-hero h1 {
    font-size: clamp(2.8rem, 15vw, 4.4rem);
  }

  .login-card {
    padding: 24px 26px;
  }

  .login-pet {
    width: 146px;
  }

  .app-header .brand-name {
    max-width: calc(100vw - 112px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .amount-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quote-card {
    padding: 14px;
    border-radius: 24px;
  }

  .quote-panel {
    min-height: auto;
    padding: 18px;
  }

  .currency-select {
    grid-template-columns: auto 1fr;
  }

  .currency-select span:last-child {
    grid-column: 2;
  }

  .confirm-quote-button,
  .submit-recharge-button,
  .pay-recharge-button {
    width: 100%;
  }

  .payment-success {
    width: min(320px, calc(100vw - 32px));
    transform: translate(-50%, -46%) scale(0.88);
    transform-origin: center;
  }

  .payment-success.is-visible {
    transform: translate(-50%, -50%) scale(0.92);
  }

  .history-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .history-list-head {
    display: none;
  }

  .history-wallet-panel {
    min-height: 300px;
    padding: 20px 12px 28px;
  }

  .history-wallet {
    transform: scale(0.92);
  }

  .history-wallet:hover {
    transform: translateY(-5px) scale(0.92);
  }

  .history-wallet.is-open {
    transform: translateY(-5px) scale(0.92);
  }

  .history-wallet.is-open .history-wallet-card {
    transform: translateY(-58px) scale(1.03) rotate(-2deg);
  }

  .bottom-nav {
    gap: 10px;
    padding: 8px;
  }

  .bottom-item {
    --dock-size: 50px;
  }

  .bottom-item.is-active .bottom-label {
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
  }
}


.referral-card { position: relative; overflow: hidden; }
.coming-soon-overlay { position: absolute; inset: 0; z-index: 10; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.5); backdrop-filter: blur(8px); color: var(--red); font-weight: 900; font-size: 1.5rem; text-align: center; }
