:root {
  --zelle: #6116d4;
  --zelle-deep: #3d0b93;
  --zelle-soft: #7b39e8;
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --panel: rgba(255, 255, 255, 0.13);
  --panel-strong: rgba(255, 255, 255, 0.22);
  --line: rgba(255, 255, 255, 0.24);
  --shadow: 0 28px 70px rgba(36, 4, 86, 0.34);
  --radius-lg: 30px;
  --radius-md: 22px;
  --radius-sm: 15px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -12%, rgba(255, 255, 255, 0.24), transparent 31%),
    linear-gradient(155deg, var(--zelle) 0%, var(--zelle-deep) 100%);
  font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
  cursor: pointer;
}

img,
canvas {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.zcw-shell {
  display: grid;
  min-height: 100dvh;
  place-items: center;
  padding: clamp(18px, 4vw, 46px);
}

.zcw-phone {
  width: min(100%, 460px);
  min-height: min(860px, calc(100dvh - 36px));
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 38px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.07)),
    var(--zelle);
  box-shadow: var(--shadow);
}

.zcw-header,
.zcw-card-head,
.zcw-address-row,
.zcw-address-tools,
.zcw-actions {
  display: flex;
  align-items: center;
}

.zcw-header {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.zcw-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.zcw-logo {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

.zcw-kicker,
.zcw-label {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  font-size: clamp(1.28rem, 4.4vw, 1.58rem);
  letter-spacing: -0.04em;
}

h2 {
  margin-bottom: 0;
  font-size: 1.12rem;
  letter-spacing: -0.03em;
}

.zcw-status {
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.zcw-status.is-online {
  background: #ffffff;
  color: var(--zelle);
}

.zcw-status.is-error {
  background: #fff;
  color: #b90042;
}

.zcw-balance-card {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #ffffff;
  color: var(--zelle);
  box-shadow: 0 18px 42px rgba(36, 4, 86, 0.2);
}

.zcw-balance-card .zcw-label {
  color: rgba(97, 22, 212, 0.65);
}

.zcw-balance {
  margin: 0;
  font-size: clamp(2.7rem, 10vw, 4.4rem);
  font-weight: 900;
  letter-spacing: -0.075em;
  line-height: 0.94;
  white-space: nowrap;
  overflow-wrap: anywhere;
}

.zcw-balance[data-size="compact"] {
  font-size: clamp(2.05rem, 7vw, 2.62rem);
  letter-spacing: -0.055em;
}

.zcw-balance[data-size="tiny"] {
  font-size: clamp(1.72rem, 6vw, 2.2rem);
  letter-spacing: -0.04em;
}

.zcw-balance-subtext {
  margin: 14px 0 0;
  color: rgba(97, 22, 212, 0.7);
  font-weight: 700;
}

.zcw-address-panel,
.zcw-card {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  backdrop-filter: blur(22px);
}

.zcw-address-panel label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.zcw-address-row {
  gap: 10px;
}

.zcw-address-row input,
.zcw-send-grid input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 17px;
  outline: none;
  background: rgba(255, 255, 255, 0.13);
  color: var(--ink);
  font-weight: 800;
}

.zcw-address-row input {
  height: 54px;
  padding: 0 15px;
}

.zcw-address-row input::placeholder,
.zcw-send-grid input::placeholder {
  color: rgba(255, 255, 255, 0.52);
}

.zcw-button,
.zcw-action,
.zcw-address-tools button {
  border-radius: 999px;
  font-weight: 900;
}

.zcw-button {
  min-height: 52px;
  padding: 0 20px;
  background: #ffffff;
  color: var(--zelle);
}

.zcw-button--white {
  box-shadow: 0 10px 24px rgba(36, 4, 86, 0.16);
}

.zcw-address-tools {
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
}

.zcw-address-tools button {
  flex: 1;
  min-height: 38px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.zcw-actions {
  gap: 10px;
  margin-top: 16px;
}

.zcw-action {
  display: grid;
  flex: 1;
  min-height: 88px;
  place-items: center;
  padding: 12px 8px;
  color: #ffffff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.16);
}

.zcw-action span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: #ffffff;
  color: var(--zelle);
  font-size: 1.1rem;
}

.zcw-card-head {
  justify-content: space-between;
  gap: 14px;
}

.zcw-small-icon {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  object-fit: cover;
}

.zcw-copy {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.zcw-token-pill {
  padding: 9px 13px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--zelle);
  font-weight: 900;
}

.zcw-code-wrap {
  display: grid;
  width: 184px;
  height: 184px;
  place-items: center;
  margin: 16px auto;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(97, 22, 212, 0.08);
}

#addressCode {
  width: 164px;
  height: 164px;
  image-rendering: pixelated;
}

#receiveAddressText {
  display: block;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.zcw-send-grid {
  display: grid;
  gap: 10px;
  margin: 10px 0;
}

.zcw-send-grid input {
  min-height: 50px;
  padding: 0 14px;
}

.zcw-send-card .zcw-button {
  width: 100%;
}

@media (max-width: 430px) {
  .zcw-shell {
    padding: 0;
  }

  .zcw-phone {
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .zcw-header {
    align-items: flex-start;
  }

  .zcw-status {
    font-size: 0.7rem;
  }
}
