:root {
  color-scheme: dark;
  font-family: Inter, "Segoe UI Variable Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --bg: #020912;
  --bg-deep: #01060c;
  --surface: #091725;
  --surface-strong: #0d1d2c;
  --surface-hover: #11263a;
  --border: rgb(65 123 164 / 42%);
  --border-soft: rgb(72 123 158 / 22%);
  --border-bright: rgb(76 166 224 / 60%);
  --text: #f7fbff;
  --text-secondary: #b5c5d4;
  --muted: #7990a5;
  --blue: #168df2;
  --cyan: #22c8e8;
  --green: #29d7aa;
  --green-soft: #75efd0;
  --amber: #ffc84f;
  --danger: #ff6178;
  --focus: #71ceff;
  --theme-accent: #00B897;
  --theme-bg: #050A12;
  --theme-surface: #0B1724;
  --theme-text: #F5F7FA;
  --shadow-card: 0 24px 64px rgb(0 6 16 / 38%), inset 0 1px 0 rgb(255 255 255 / 4%);
  --shadow-small: 0 14px 34px rgb(0 6 16 / 27%), inset 0 1px 0 rgb(255 255 255 / 3%);
  --radius-sm: 10px;
  --radius-md: 15px;
  --radius-lg: 20px;
  --ease-out: cubic-bezier(.2, .75, .25, 1);
  --space-shift: 0px;
  background: var(--bg-deep);
  color: var(--text);
}

* { box-sizing: border-box; }
html { min-width: 0; min-height: 100%; background: var(--bg-deep); scrollbar-color: #28506d #030b13; }
body {
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -12%, rgb(20 120 188 / 20%), transparent 37rem),
    linear-gradient(180deg, var(--bg) 0%, #020b14 58%, var(--bg-deep) 100%);
  color: var(--text);
}
body::before {
  position: fixed;
  z-index: -2;
  inset: -52px -5vw;
  background:
    radial-gradient(circle at 22% 12%, color-mix(in srgb, var(--theme-accent) 12%, transparent), transparent 28rem),
    linear-gradient(180deg, color-mix(in srgb, var(--theme-bg) 94%, #000 6%), var(--theme-bg));
  transform: translate3d(0, var(--space-shift), 0);
  content: "";
  pointer-events: none;
  will-change: transform;
}
body::after {
  position: fixed;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 14% 17%, rgb(32 151 231 / 10%), transparent 27rem),
    radial-gradient(circle at 87% 49%, rgb(22 211 166 / 7%), transparent 30rem),
    linear-gradient(90deg, rgb(0 0 0 / 12%), transparent 26%, transparent 74%, rgb(0 0 0 / 12%));
  content: "";
  pointer-events: none;
}
.ambient {
  position: fixed;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.ambient::before, .ambient::after {
  position: absolute;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .09;
  content: "";
}
.ambient::before { top: 8%; left: -15rem; background: var(--blue); }
.ambient::after { right: -16rem; bottom: 13%; background: var(--green); }
::selection { background: rgb(36 169 255 / 38%); color: #fff; }
[hidden] { display: none !important; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { touch-action: manipulation; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
svg { display: block; }

.app-shell {
  position: relative;
  width: min(100%, 476px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top), var(--tg-content-safe-area-inset-top, 0px)) 16px max(34px, env(safe-area-inset-bottom));
}

/* Invalid-link screen */
.registration-gate {
  position: relative;
  z-index: 10;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: min(100%, 476px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top), var(--tg-content-safe-area-inset-top, 0px)) 16px max(24px, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 50% -8%, rgb(20 120 188 / 18%), transparent 31rem),
    linear-gradient(180deg, var(--theme-bg), color-mix(in srgb, var(--theme-bg) 88%, #000 12%));
}
.registration-card {
  position: relative;
  isolation: isolate;
  width: 100%;
  padding: 28px 22px 22px;
  overflow: hidden;
  border: 1px solid rgb(75 160 219 / 44%);
  border-radius: 23px;
  background:
    radial-gradient(circle at 11% 2%, rgb(36 158 241 / 16%), transparent 35%),
    radial-gradient(circle at 94% 100%, rgb(31 214 171 / 8%), transparent 39%),
    linear-gradient(155deg, rgb(14 32 48 / 92%), rgb(7 18 29 / 96%));
  box-shadow: 0 34px 100px rgb(0 4 12 / 62%), inset 0 1px 0 rgb(255 255 255 / 6%);
  backdrop-filter: blur(18px) saturate(1.08);
}
.registration-card::after {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 24px;
  left: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(79 190 255 / 62%), rgb(56 230 187 / 42%), transparent);
  content: "";
}
.registration-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 28px; }
.registration-brand span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgb(112 202 255 / 30%);
  border-radius: 14px;
  background: linear-gradient(145deg, rgb(255 255 255 / 12%), rgb(255 255 255 / 3%));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 10%), 0 11px 25px rgb(0 8 20 / 28%);
}
.registration-brand img { width: 31px; height: auto; filter: drop-shadow(0 4px 8px rgb(0 0 0 / 28%)); }
.registration-brand strong { font-family: Arial, sans-serif; font-size: 31px; line-height: 1; letter-spacing: -.8px; }
.registration-card h1 { margin: 8px 0 11px; color: #fff; font-size: clamp(31px, 9vw, 39px); font-weight: 810; line-height: 1.1; letter-spacing: -1px; }
.registration-description { max-width: 330px; margin: 0 0 26px; color: var(--text-secondary); font-size: 13px; line-height: 1.6; }

/* Profile */
.profile-header {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(105px, .85fr) minmax(170px, 1.15fr);
  align-items: center;
  gap: 15px;
  min-height: 120px;
  padding: 19px;
  overflow: hidden;
  border: 1px solid rgb(75 160 219 / 42%);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(122deg, rgb(10 51 88 / 97%), rgb(7 31 56 / 97%) 54%, rgb(6 50 67 / 95%)),
    #08233d;
  box-shadow: 0 24px 62px rgb(0 8 20 / 43%), inset 0 1px 0 rgb(255 255 255 / 7%);
  backdrop-filter: blur(18px) saturate(1.12);
}
.profile-header::before, .profile-header::after {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}
.profile-header::before {
  top: -105px;
  left: -80px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgb(39 160 248 / 25%), transparent 68%);
}
.profile-header::after {
  right: -60px;
  bottom: -125px;
  width: 235px;
  height: 220px;
  background: radial-gradient(circle, rgb(29 218 174 / 17%), transparent 70%);
}
.profile-header-glow {
  position: absolute;
  right: 24px;
  bottom: 0;
  left: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(69 184 255 / 52%), rgb(51 232 188 / 34%), transparent);
  pointer-events: none;
}
.profile-header.without-client { grid-template-columns: minmax(0, 1fr); min-height: 94px; }
.profile-header.without-client .brand { justify-self: start; }
.profile-header.without-client .profile-user { display: none; }
.brand { grid-column: 1; display: flex; align-items: center; gap: 10px; min-width: 0; color: inherit; text-decoration: none; }
.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border: 1px solid rgb(116 199 255 / 24%);
  border-radius: 13px;
  background: linear-gradient(145deg, rgb(255 255 255 / 12%), rgb(255 255 255 / 3%));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 10%), 0 9px 20px rgb(0 8 20 / 24%);
  transition: transform 240ms var(--ease-out), border-color 240ms ease, box-shadow 240ms ease;
}
.brand-mark::before {
  position: absolute;
  inset: -45% auto -45% -75%;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 30%), transparent);
  transform: skewX(-18deg);
  transition: left 520ms var(--ease-out);
  content: "";
}
.brand-mark img { position: relative; width: 26px; height: auto; filter: drop-shadow(0 4px 8px rgb(0 0 0 / 25%)); transition: transform 240ms var(--ease-out); }
.brand-copy { display: grid; gap: 5px; min-width: 0; }
.brand-copy strong { max-width: 128px; overflow: hidden; font-family: Arial, sans-serif; font-size: 28px; font-weight: 700; line-height: 1; letter-spacing: -.7px; text-overflow: ellipsis; white-space: nowrap; }
.brand-copy small { max-width: 128px; overflow: hidden; color: #84aac8; font-size: 7px; font-weight: 800; letter-spacing: .11em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.profile-user {
  grid-column: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px;
  grid-template-areas:
    "copy avatar"
    "timer timer";
  align-items: center;
  justify-self: stretch;
  gap: 8px 10px;
  min-width: 0;
}
.profile-user.without-identity .profile-copy { display: none; }
.profile-user.without-identity { grid-template-columns: 1fr 54px; grid-template-areas: "timer avatar"; }
.profile-copy { grid-area: copy; display: flex; flex-direction: column; align-items: flex-end; min-width: 0; overflow: hidden; line-height: 1.18; text-align: right; }
.profile-eyebrow { display: inline-flex; align-items: center; gap: 6px; color: #7dccff; font-size: 8px; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
.profile-eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgb(41 215 170 / 10%), 0 0 11px rgb(41 215 170 / 68%); }
.profile-copy h1 { width: 100%; max-width: 145px; margin: 5px 0 3px; overflow: hidden; font-size: 14px; font-weight: 780; line-height: 1.25; letter-spacing: -.12px; text-overflow: ellipsis; white-space: nowrap; }
.user-identity { width: 100%; max-width: 145px; min-height: 18px; padding: 0; overflow: hidden; border: 0; background: transparent; color: #a9bfd0; font-size: 9px; font-weight: 600; text-align: right; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; transition: color 180ms ease; }
.telegram-user-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 28px;
  margin-top: 6px;
  padding: 5px 9px;
  border: 1px solid rgb(74 228 188 / 28%);
  border-radius: 9px;
  background: linear-gradient(135deg, rgb(6 119 97 / 95%), rgb(5 82 76 / 97%));
  color: #eafff9;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 9%), 0 7px 18px rgb(0 48 40 / 20%);
  font-size: 8px;
  font-weight: 730;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 180ms ease, filter 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.telegram-user-button svg { width: 12px; height: 12px; fill: currentColor; opacity: .9; }
.avatar {
  grid-area: avatar;
  justify-self: end;
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border: 2px solid rgb(142 208 255 / 70%);
  border-radius: 50%;
  outline: 3px solid rgb(73 161 226 / 11%);
  background: linear-gradient(145deg, #173b5e, #0b2033);
  color: #e7f5ff;
  box-shadow: 0 10px 26px rgb(0 8 21 / 40%);
  font-size: 16px;
  font-weight: 800;
}
.avatar img { position: absolute; inset: 0; display: none; width: 100%; height: 100%; object-fit: cover; }
.avatar.has-photo img { display: block; }
.avatar.has-photo span { visibility: hidden; }

/* Navigation */
.page-nav { display: flex; align-items: center; justify-content: flex-start; gap: 12px; margin: 18px 1px; }
.back-button { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 48px; padding: 0; border: 0; background: transparent; color: var(--text); cursor: pointer; }
.nav-icon { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 12px; background: rgb(10 23 36 / 82%); box-shadow: var(--shadow-small); transition: transform 170ms ease, background 170ms ease, border-color 170ms ease; }
.nav-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav-copy { display: grid; min-width: 0; text-align: left; }
.nav-copy small, .timer-copy small { color: var(--muted); font-size: 8px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.nav-copy strong { margin-top: 4px; overflow: hidden; font-size: 14px; font-weight: 720; text-overflow: ellipsis; white-space: nowrap; }
.timer { grid-area: timer; display: flex; align-items: center; justify-content: center; justify-self: end; gap: 6px; width: auto; min-width: 116px; max-width: 128px; min-height: 34px; padding: 5px 8px; border: 1px solid var(--border); border-radius: 9px; background: linear-gradient(145deg, rgb(15 32 49 / 96%), rgb(8 20 32 / 96%)); box-shadow: var(--shadow-small); }
.timer-icon { color: var(--cyan); }
.timer-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.timer-copy { display: grid; }
.timer-copy strong { margin-top: 2px; color: #fff; font-size: 12px; font-variant-numeric: tabular-nums; font-weight: 800; letter-spacing: .03em; }
.timer.is-urgent { border-color: rgb(255 200 79 / 48%); background: linear-gradient(145deg, rgb(57 44 19 / 95%), rgb(30 27 20 / 96%)); }
.timer.is-urgent .timer-icon, .timer.is-urgent .timer-copy strong { color: var(--amber); }
.timer.is-expired { border-color: rgb(255 97 120 / 45%); background: rgb(64 20 29 / 78%); }
.timer.is-expired .timer-icon, .timer.is-expired .timer-copy strong { color: var(--danger); }

/* Main cards */
.panel {
  position: relative;
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgb(13 29 44 / 97%), rgb(8 20 31 / 97%));
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
}
.panel::before { position: absolute; top: -120px; right: -105px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgb(34 180 244 / 10%), transparent 69%); content: ""; pointer-events: none; }
.panel > * { position: relative; z-index: 1; }
.amount-panel { padding: 23px 21px 22px; background: linear-gradient(145deg, rgb(12 34 53 / 98%), rgb(7 21 34 / 97%)); }
.amount-panel::after { position: absolute; right: 26px; bottom: 0; left: 26px; height: 1px; background: linear-gradient(90deg, transparent, rgb(32 192 235 / 35%), transparent); content: ""; }
.card-heading, .panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-label { display: inline-flex; align-items: center; gap: 9px; color: #7dccff; font-size: 11px; font-weight: 760; letter-spacing: .035em; text-transform: uppercase; }
.section-icon { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid rgb(82 177 240 / 25%); border-radius: 9px; background: rgb(28 126 191 / 14%); }
.section-icon svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.secure-badge { display: inline-flex; align-items: center; flex: 0 0 auto; gap: 6px; padding: 6px 8px; border: 1px solid rgb(52 214 172 / 18%); border-radius: 999px; background: rgb(13 101 80 / 17%); color: #72d6bb; font-size: 8px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.secure-badge i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px rgb(41 215 170 / 72%); }
.amount-panel h2 { max-width: 355px; margin: 24px 0 0; color: #fff; font-size: clamp(26px, 7.7vw, 33px); font-weight: 790; line-height: 1.16; letter-spacing: -.8px; }
.amount { margin: 23px 0 17px; color: #fff; font-size: clamp(43px, 13vw, 56px); font-variant-numeric: tabular-nums lining-nums; font-weight: 830; line-height: 1; letter-spacing: -1.8px; overflow-wrap: anywhere; text-shadow: 0 0 26px rgb(34 173 244 / 12%); }
.description { max-width: 390px; margin: 0; color: var(--text-secondary); font-size: 13px; line-height: 1.68; }

.bank-panel { padding: 0 20px; }
.panel-heading { min-height: 88px; margin: 0 -20px; padding: 18px 20px 16px; border-bottom: 1px solid var(--border-soft); background: linear-gradient(180deg, rgb(15 33 49 / 82%), rgb(9 23 35 / 24%)); }
.details-description { max-width: 290px; margin: 7px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.panel-kicker { display: block; margin-bottom: 6px; color: #7294ad; font-size: 8px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.panel-heading h2 { margin: 0; color: #fff; font-size: 23px; font-weight: 790; line-height: 1.15; letter-spacing: -.55px; }
.verified-mark { display: grid; place-items: center; flex: 0 0 39px; width: 39px; height: 39px; border: 1px solid rgb(52 214 172 / 23%); border-radius: 12px; background: rgb(13 101 80 / 17%); color: var(--green); }
.verified-mark svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
dl { margin: 0; }
.detail-row { min-height: 82px; padding: 18px 0; border-bottom: 1px solid var(--border-soft); }
.detail-row:last-child { border-bottom: 0; }
.payment-details-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 14px 0 18px; }
.payment-details-grid > .detail-row { min-height: 76px; padding: 14px; border: 1px solid var(--border-soft); border-radius: calc(var(--radius-sm) + 1px); background: color-mix(in srgb, var(--theme-surface) 82%, transparent); }
.payment-details-grid > .detail-row[data-layout-span="full"],
.payment-details-grid > .extra-detail-rows,
.payment-details-grid > .amount-row { grid-column: 1 / -1; }
.payment-details-grid > .extra-detail-rows { display: grid; gap: 10px; }
.payment-details-grid > .extra-detail-rows .detail-row { padding: 14px; border: 1px solid var(--border-soft); border-radius: calc(var(--radius-sm) + 1px); }
.payment-details-grid[data-display="rows"] { grid-template-columns: 1fr; gap: 0; padding-inline: 2px; }
.payment-details-grid[data-display="rows"] > .detail-row { grid-column: 1 / -1; min-height: 72px; padding: 17px 2px; border: 0; border-bottom: 1px solid var(--border-soft); border-radius: 0; background: transparent; }
.payment-details-grid[data-display="rows"] > .extra-detail-rows { gap: 0; }
.payment-details-grid[data-display="rows"] > .extra-detail-rows .detail-row { padding: 17px 2px; border: 0; border-bottom: 1px solid var(--border-soft); border-radius: 0; background: transparent; }
dt { margin-bottom: 7px; color: var(--muted); font-size: 11px; }
dd { margin: 0; color: var(--text); font-size: 17px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.payment-details-grid dt { font-family: var(--details-font-family, Inter, "Segoe UI", Arial, sans-serif); font-size: var(--details-label-size, 11px); }
.payment-details-grid dd { font-family: var(--details-font-family, Inter, "Segoe UI", Arial, sans-serif); font-size: var(--details-value-size, 16px); }
.copy-row, .amount-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.copy-row > div, .amount-row > div { min-width: 0; }
#card-number, #iban-value, #bank-amount { font-variant-numeric: tabular-nums; }
#iban-value { font-size: 15px; letter-spacing: .015em; }
#iban-value.is-missing { color: var(--muted); font-size: 13px; font-weight: 600; }
.copy-action { position: relative; flex: 0 0 44px; min-width: 44px !important; }
.icon-button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--border); border-radius: 12px; background: linear-gradient(145deg, #122a40, #0d1d2d); color: #67ccf2; box-shadow: inset 0 1px 0 rgb(255 255 255 / 5%); cursor: pointer; transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease; }
.copy-icon { position: relative; display: inline-block; flex: 0 0 18px; width: 18px; height: 18px; color: inherit; }
.copy-icon::before, .copy-icon::after { position: absolute; width: 10px; height: 10px; border: 1.6px solid currentColor; border-radius: 3px; content: ""; }
.copy-icon::before { top: 1px; right: 1px; }
.copy-icon::after { bottom: 1px; left: 1px; background: #11283c; }
.secondary-button .copy-icon::after { background: #081621; }
.copy-toast { position: absolute; z-index: 5; top: 50%; right: calc(100% + 10px); width: max-content; max-width: 150px; padding: 8px 10px; border: 1px solid rgb(55 142 164 / 55%); border-radius: 9px; background: #0d2732; color: #cffff2; box-shadow: 0 10px 28px rgb(0 0 0 / 38%); font-size: 11px; font-weight: 700; line-height: 1.2; opacity: 0; pointer-events: none; transform: translate(6px, -50%) scale(.96); transition: opacity 180ms ease, transform 180ms var(--ease-out); }
.copy-toast::after { position: absolute; top: 50%; left: 100%; border: 5px solid transparent; border-left-color: rgb(55 142 164 / 55%); content: ""; transform: translateY(-50%); }
.copy-toast.is-visible { opacity: 1; transform: translate(0, -50%) scale(1); }
.currency-chip { flex: 0 0 auto; padding: 5px 8px; border: 1px solid var(--border-soft); border-radius: 999px; background: rgb(22 70 100 / 22%); color: #82a7c0; font-size: 8px; font-weight: 800; letter-spacing: .08em; }

/* Notice and actions */
.warning { display: flex; gap: 13px; margin-bottom: 18px; padding: 15px; border: 1px solid rgb(162 126 43 / 48%); border-radius: 15px; background: linear-gradient(145deg, rgb(52 43 20 / 92%), rgb(31 29 21 / 94%)); color: #d9c487; box-shadow: var(--shadow-small); font-size: 12px; line-height: 1.58; }
.warning-icon { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border: 1px solid rgb(255 200 79 / 26%); border-radius: 11px; background: rgb(255 200 79 / 10%); color: var(--amber); }
.warning-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.warning .instruction-copy, .warning strong { margin: 0; }
.warning strong { display: block; margin-bottom: 3px; color: currentColor; font-size: 12px; }
.instruction-copy { min-width: 0; flex: 1; }
.payment-instruction-steps { display: grid; gap: 11px; }
.payment-instruction-step { position: relative; display: flex; align-items: flex-start; gap: 10px; }
.payment-instruction-step + .payment-instruction-step::before { position: absolute; left: 12px; bottom: calc(100% + 2px); width: 1px; height: 8px; background: currentColor; content: ""; opacity: .28; }
.payment-instruction-step > b { display: grid; place-items: center; flex: 0 0 25px; width: 25px; height: 25px; border: 1px solid currentColor; border-radius: 50%; font-size: 10px; opacity: .9; }
.payment-instruction-step > div { min-width: 0; flex: 1; }
.payment-instruction-step span { display: block; padding-top: 2px; font-family: var(--instruction-font-family, Inter, "Segoe UI", Arial, sans-serif); font-size: var(--instruction-font-size, 16px); line-height: 1.55; }
.payment-instruction-step img { display: block; width: 100%; height: auto; max-height: none; margin-top: 9px; border-radius: 11px; object-fit: contain; box-shadow: 0 8px 24px rgb(0 0 0 / 22%); }
.instruction-toggle { width: 100%; min-height: 48px; margin: 10px 0; padding: 9px 12px; border: 1px solid color-mix(in srgb, var(--theme-accent) 34%, transparent); border-radius: 11px; display: grid; grid-template-columns: 28px minmax(0, 1fr) 20px; align-items: center; gap: 10px; color: color-mix(in srgb, var(--theme-text) 84%, transparent); background: color-mix(in srgb, var(--theme-surface) 88%, transparent); cursor: pointer; text-align: left; transition: transform 170ms ease, border-color 170ms ease, background 170ms ease; }
.instruction-toggle > span { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 8px; color: var(--theme-accent); background: color-mix(in srgb, var(--theme-accent) 14%, transparent); font-size: 12px; font-weight: 900; }
.instruction-toggle strong { font-size: 11px; line-height: 1.35; }
.instruction-toggle i { position: relative; display: block; justify-self: center; width: 20px; height: 20px; border-radius: 6px; background: color-mix(in srgb, var(--theme-text) 5%, transparent); transition: transform 200ms ease, background 200ms ease; }
.instruction-toggle i::before { position: absolute; top: 50%; left: 50%; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; content: ""; transform: translate(-50%, -67%) rotate(45deg); transform-origin: center; }
.instruction-toggle.is-open i { transform: rotate(180deg); }
.instruction-toggle.is-open i { background: color-mix(in srgb, var(--theme-accent) 13%, transparent); }
.instruction-toggle:active { transform: scale(.985); }
.instruction-toggle + .warning { margin-top: 0; }
.actions { display: grid; gap: 10px; }
.actions button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 56px; padding: 12px 15px; border-radius: 13px; color: #fff; font-size: 14px; font-weight: 740; cursor: pointer; transition: transform 170ms ease, filter 170ms ease, border-color 170ms ease, background 170ms ease, box-shadow 170ms ease, opacity 170ms ease; }
.actions #paid-button { min-height: 50px; padding: 10px 16px; gap: 9px; border-radius: 10px; text-align: center; }
.actions #paid-button > svg { width: 17px; height: 17px; }
.actions #paid-button > strong { font-size: 13px; font-weight: 790; }
.actions button:active:not(:disabled), .contact-link:active { transform: scale(.985); }
.actions button:disabled { cursor: default; filter: saturate(.5); opacity: .58; }
.primary-button { border: 1px solid rgb(91 218 255 / 26%); background: linear-gradient(110deg, #147df8, #109bf0 50%, #10bfe2); box-shadow: 0 12px 27px rgb(11 126 241 / 27%), inset 0 1px 0 rgb(255 255 255 / 21%); }
.primary-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.primary-button.is-loading svg { animation: loading-pulse 700ms ease-in-out infinite alternate; }
.secondary-button { border: 1px solid var(--border); background: rgb(8 21 33 / 82%); color: #d9e7f2; }
.status { min-height: 20px; margin: 11px 0 0; color: var(--green-soft); font-size: 12px; line-height: 1.5; text-align: center; }

/* Contact */
.contact-footer { padding: 5px 0 0; }
.contact-link { display: flex; align-items: center; gap: 13px; min-height: 73px; padding: 12px 14px; border: 1px solid rgb(53 121 164 / 74%); border-radius: 17px; background: linear-gradient(120deg, rgb(9 40 61 / 97%), rgb(6 23 37 / 97%)); color: inherit; box-shadow: var(--shadow-small); text-decoration: none; transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease; }
.contact-icon { display: grid; place-items: center; flex: 0 0 43px; width: 43px; height: 43px; border: 1px solid rgb(92 214 255 / 39%); border-radius: 13px; background: linear-gradient(145deg, #25b6e7, #087faf); box-shadow: 0 10px 25px rgb(12 150 205 / 25%), inset 0 1px 0 rgb(255 255 255 / 18%); }
.contact-icon svg { width: 23px; height: 23px; fill: #fff; }
.contact-copy { display: block; min-width: 0; }
.contact-copy small { display: block; margin-bottom: 5px; color: #7695aa; font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.contact-copy strong { display: block; overflow: hidden; font-size: 13px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.contact-arrow { width: 20px; height: 20px; margin-left: auto; fill: none; stroke: #6ea9ca; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform 180ms ease, stroke 180ms ease; }
.contact-footer > p { margin: 10px 0 0; color: #526e82; font-size: 8px; letter-spacing: .055em; text-align: center; }

/* Confirmation modal */
.modal-open { overflow: hidden; }
.modal-overlay { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 14px; background: rgb(1 5 10 / 80%); backdrop-filter: blur(9px) saturate(.85); }
.modal-overlay[hidden] { display: none; }
.payment-modal { position: relative; width: min(100%, 410px); max-height: calc(100dvh - 28px); padding: 25px 22px 22px; overflow-y: auto; border: 1px solid var(--border); border-radius: 21px; background: radial-gradient(circle at 15% 4%, rgb(39 208 162 / 9%), transparent 33%), radial-gradient(circle at 86% 100%, rgb(34 159 245 / 10%), transparent 42%), linear-gradient(155deg, #111f2d, #0b1621); color: var(--text); box-shadow: 0 36px 110px rgb(0 0 0 / 72%), inset 0 1px 0 rgb(255 255 255 / 5%); }
.modal-header { display: flex; align-items: center; justify-content: space-between; }
.processing-icon { display: grid; place-items: center; width: 50px; height: 50px; border: 1px solid rgb(50 187 224 / 22%); border-radius: 14px; background: rgb(7 38 52 / 85%); color: var(--cyan); }
.processing-icon svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.modal-close { display: grid; place-items: center; width: 43px; height: 43px; padding: 0; border: 1px solid transparent; border-radius: 12px; background: transparent; color: #8498a9; font-size: 29px; font-weight: 300; line-height: 1; cursor: pointer; transition: border-color 170ms ease, background 170ms ease, color 170ms ease; }
.modal-kicker { display: block; margin-top: 21px; color: #72d6bb; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.payment-modal h2 { margin: 8px 0 19px; color: #fff; font-size: clamp(27px, 8vw, 33px); font-weight: 790; line-height: 1.18; letter-spacing: -.7px; }
.payment-modal p { margin: 0 0 17px; color: var(--text-secondary); font-size: 15px; line-height: 1.62; }
.payment-modal .modal-support { padding-top: 15px; border-top: 1px solid var(--border-soft); color: var(--muted); font-size: 12px; }
.payment-modal a { color: #81d2ff; text-underline-offset: 3px; }
.modal-ok { width: 100%; min-height: 54px; margin-top: 3px; padding: 12px 15px; border: 1px solid rgb(91 218 255 / 26%); border-radius: 13px; background: linear-gradient(110deg, #147df8, #109bf0 50%, #10bfe2); color: #fff; box-shadow: 0 12px 27px rgb(11 126 241 / 27%), inset 0 1px 0 rgb(255 255 255 / 21%); font-size: 14px; font-weight: 740; cursor: pointer; }
.receipt-form { display: grid; gap: 13px; }
.receipt-picker { display: grid; justify-items: center; gap: 7px; min-height: 150px; padding: 22px 16px; border: 1px dashed rgb(64 189 231 / 52%); border-radius: 16px; background: rgb(4 21 32 / 74%); text-align: center; cursor: pointer; transition: border-color 170ms ease, background 170ms ease, transform 170ms ease; }
.receipt-picker:focus-within, .receipt-picker.is-selected { border-color: var(--cyan); background: rgb(6 40 54 / 88%); }
.receipt-picker input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.receipt-picker-icon { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid rgb(62 205 238 / 23%); border-radius: 13px; background: rgb(16 147 211 / 12%); color: var(--cyan); }
.receipt-picker-icon svg, .receipt-upload-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.receipt-picker strong { color: #f4fbff; font-size: 15px; }
.receipt-picker small { color: var(--muted); font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; }
.receipt-status { min-height: 18px; margin: 0 !important; color: #ffb49e !important; font-size: 12px !important; text-align: center; }
.receipt-submit:disabled { opacity: .48; cursor: not-allowed; box-shadow: none; }
.receipt-submit.is-loading { color: transparent; pointer-events: none; }
.receipt-submit.is-loading::after { content: ""; position: absolute; width: 20px; height: 20px; border: 2px solid rgb(255 255 255 / 35%); border-top-color: #fff; border-radius: 50%; animation: receipt-spin .75s linear infinite; }
.receipt-submit { position: relative; display: grid; place-items: center; }
.modal-retry { margin-bottom: 10px; background: linear-gradient(110deg, #ed734d, #f6a23d); border-color: rgb(255 189 107 / 35%); box-shadow: 0 12px 27px rgb(213 91 34 / 24%); }
.processing-icon.is-approved { color: #68e0b0; border-color: rgb(104 224 176 / 30%); background: rgb(23 111 79 / 20%); }
.processing-icon.is-rejected { color: #ff9079; border-color: rgb(255 113 92 / 30%); background: rgb(128 48 37 / 20%); }
@keyframes receipt-spin { to { transform: rotate(360deg); } }

/* Interaction and motion */
@media (hover: hover) and (pointer: fine) {
  .brand:hover .brand-mark { border-color: rgb(100 207 255 / 70%); box-shadow: 0 11px 28px rgb(18 151 217 / 24%), inset 0 1px 0 rgb(255 255 255 / 15%); transform: translateY(-2px) rotate(-2deg) scale(1.04); }
  .brand:hover .brand-mark::before { left: 145%; }
  .brand:hover .brand-mark img { transform: scale(1.08) rotate(2deg); }
  .user-identity:hover { color: #82d2ff; }
  .telegram-user-button:hover { border-color: rgb(92 240 201 / 46%); filter: brightness(1.1); box-shadow: inset 0 1px 0 rgb(255 255 255 / 11%), 0 8px 20px rgb(0 188 143 / 14%); }
  .back-button:hover .nav-icon, .icon-button:hover { border-color: var(--border-bright); background: var(--surface-hover); color: #a4e5ff; }
  .back-button:hover .nav-icon { transform: translateX(-2px); }
  .primary-button:hover:not(:disabled), .modal-ok:hover { filter: brightness(1.08); box-shadow: 0 15px 32px rgb(11 126 241 / 34%), inset 0 1px 0 rgb(255 255 255 / 25%); }
  .secondary-button:hover:not(:disabled) { border-color: var(--border-bright); background: var(--surface-hover); }
  .contact-link:hover { border-color: rgb(75 163 217 / 86%); background: linear-gradient(120deg, #0c344f, #082033); box-shadow: 0 20px 46px rgb(0 5 12 / 30%), inset 0 1px 0 rgb(255 255 255 / 4%); transform: translateY(-2px); }
  .contact-link:hover .contact-arrow { stroke: #c3edff; transform: translateX(3px); }
  .modal-close:hover { border-color: var(--border-soft); background: rgb(255 255 255 / 5%); color: #e8f4fc; }
}
.icon-button:active, .telegram-user-button:active, .modal-ok:active { transform: scale(.96); }

@media (prefers-reduced-motion: no-preference) {
  .registration-card { animation: registration-enter 440ms var(--ease-out) both; }
  .profile-header { animation: surface-enter 500ms var(--ease-out) both; }
  .page-nav { animation: surface-enter 500ms 45ms var(--ease-out) both; }
  .amount-panel { animation: surface-enter 540ms 90ms var(--ease-out) both; }
  .bank-panel { animation: surface-enter 540ms 145ms var(--ease-out) both; }
  .warning { animation: surface-enter 540ms 195ms var(--ease-out) both; }
  .actions { animation: surface-enter 540ms 235ms var(--ease-out) both; }
  .contact-footer { animation: surface-enter 540ms 280ms var(--ease-out) both; }
  .secure-badge i, .profile-eyebrow i { animation: status-pulse 2.5s ease-in-out infinite; }
  .modal-overlay:not([hidden]) { animation: backdrop-in 180ms ease both; }
  .modal-overlay:not([hidden]) .payment-modal { animation: modal-in 320ms cubic-bezier(.2, .9, .3, 1.06) both; }
}
@keyframes surface-enter { from { opacity: 0; transform: translateY(11px); } to { opacity: 1; transform: translateY(0); } }
@keyframes registration-enter { from { opacity: 0; transform: translateY(15px) scale(.975); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.965); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes status-pulse { 50% { opacity: .62; box-shadow: 0 0 3px rgb(41 215 170 / 35%); } }
@keyframes loading-pulse { to { opacity: .35; transform: scale(.82); } }

@media (max-width: 400px) {
  .payment-details-grid { grid-template-columns: 1fr; }
  .payment-details-grid > .detail-row { grid-column: 1 / -1; }
  .registration-gate { padding-inline: 12px; }
  .registration-card { padding: 24px 18px 19px; border-radius: 20px; }
  .registration-brand { margin-bottom: 24px; }
  .registration-description { margin-bottom: 22px; }
  .app-shell { padding-top: max(12px, env(safe-area-inset-top), var(--tg-content-safe-area-inset-top, 0px)); padding-inline: 12px; }
  .profile-header { grid-template-columns: minmax(100px, .8fr) minmax(160px, 1.2fr); gap: 9px; min-height: 126px; padding: 15px 13px; border-radius: 18px; }
  .brand { grid-column: 1; gap: 7px; }
  .brand-mark { flex-basis: 37px; width: 37px; height: 37px; border-radius: 11px; }
  .brand-mark img { width: 23px; }
  .brand-copy { gap: 4px; }
  .brand-copy strong { font-size: 23px; }
  .brand-copy small { font-size: 6px; letter-spacing: .075em; }
  .profile-user { grid-column: 2; grid-template-columns: minmax(0, 1fr) 46px; gap: 7px 8px; }
  .profile-user.without-identity { grid-template-columns: 1fr 46px; }
  .profile-copy { align-items: flex-end; text-align: right; }
  .profile-copy h1 { max-width: 100%; font-size: 12px; text-align: right; }
  .profile-eyebrow { font-size: 7px; }
  .user-identity { max-width: 100%; font-size: 8px; text-align: right; }
  .telegram-user-button { gap: 4px; padding-inline: 7px; font-size: 7.5px; }
  .telegram-user-button svg { width: 11px; height: 11px; }
  .avatar { flex-basis: 46px; width: 46px; height: 46px; }
  .page-nav { gap: 8px; }
  .nav-icon { flex-basis: 40px; width: 40px; height: 40px; }
  .nav-copy strong { max-width: 126px; font-size: 12px; }
  .timer { min-width: 112px; max-width: 124px; padding-inline: 8px; }
  .timer-copy small { display: none; }
  .timer-copy strong { margin-top: 0; }
  .panel { border-radius: 18px; }
  .amount-panel { padding: 20px 17px; }
  .amount-panel h2 { margin-top: 21px; }
  .bank-panel { padding-inline: 16px; }
  .panel-heading { margin-inline: -16px; padding-inline: 16px; }
  .description { font-size: 12px; }
  .copy-row { gap: 10px; }
  dd { font-size: 16px; }
}

@media (max-width: 350px) {
  .profile-header { gap: 7px; padding-inline: 10px; }
  .brand-copy small { display: none; }
  .brand-copy strong { font-size: 21px; }
  .profile-copy h1, .user-identity { max-width: 100%; }
  .avatar { flex-basis: 42px; width: 42px; height: 42px; }
  .telegram-user-button { padding-inline: 6px; font-size: 7px; }
  .nav-copy small { display: none; }
  .nav-copy strong { max-width: 105px; margin-top: 0; }
  .section-label { font-size: 9px; }
  .secure-badge { padding-inline: 6px; font-size: 7px; }
  #card-number { font-size: 14px; }
  .contact-copy strong { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  body::before { transform: none !important; }
  .profile-header, .panel, .payment-modal { backdrop-filter: none; }
}

/* Unified hub additions. */
.fatal-card { text-align: center; }
.fatal-card .registration-brand { justify-content: center; }
[hidden] { display: none !important; }
html[dir="rtl"] body { direction: rtl; }
html[dir="rtl"] .profile-copy,
html[dir="rtl"] .nav-copy,
html[dir="rtl"] .panel-heading,
html[dir="rtl"] .detail-row,
html[dir="rtl"] .warning,
html[dir="rtl"] .contact-copy { text-align: right; }
@media (max-width: 400px) {
  html[dir="rtl"] .profile-copy { align-items: flex-end; }
  html[dir="rtl"] .profile-copy h1,
  html[dir="rtl"] .user-identity { text-align: right; }
}
html[dir="rtl"] .back-button svg,
html[dir="rtl"] .contact-arrow { transform: scaleX(-1); }

/* Per-link visual themes. Every value below is controlled by the saved profile. */
.dynamic-logo { color: var(--theme-accent); font-size: 11px; font-weight: 950; letter-spacing: -.02em; }
.dynamic-logo img { width: 75%; height: 75%; object-fit: contain; }
.dynamic-brand { color: var(--theme-text); }
body {
  background:
    radial-gradient(circle at 50% -12%, color-mix(in srgb, var(--theme-accent) 18%, transparent), transparent 37rem),
    linear-gradient(180deg, var(--theme-bg), color-mix(in srgb, var(--theme-bg) 92%, #000 8%));
}
body::after {
  background:
    radial-gradient(circle at 14% 17%, color-mix(in srgb, var(--theme-accent) 12%, transparent), transparent 27rem),
    radial-gradient(circle at 87% 49%, color-mix(in srgb, var(--theme-accent) 8%, transparent), transparent 30rem);
}
.profile-header, .panel, .contact-link, .registration-card {
  border-color: color-mix(in srgb, var(--theme-accent) 38%, transparent);
  background: color-mix(in srgb, var(--theme-surface) 92%, transparent);
}
.warning { border-color: color-mix(in srgb, var(--theme-accent) 32%, transparent); background: color-mix(in srgb, var(--theme-surface) 86%, transparent); }
.primary-button {
  border-color: color-mix(in srgb, var(--theme-accent) 70%, #fff 10%);
  background: var(--theme-accent);
  box-shadow: 0 14px 30px color-mix(in srgb, var(--theme-accent) 28%, transparent);
}
.brand-mark, .section-icon, .contact-icon, .verified-mark { color: var(--theme-accent); border-color: color-mix(in srgb, var(--theme-accent) 38%, transparent); }
.amount, .currency-chip, .secure-badge, .panel-kicker { color: var(--theme-accent); }
[data-theme="polymarket"] { color-scheme: light; --text-secondary: #53627a; --muted: #748197; --border-soft: rgb(30 64 175 / 14%); }
[data-theme="polymarket"] body::before { opacity: .04; }
[data-theme="polymarket"] .profile-header,
[data-theme="polymarket"] .panel,
[data-theme="polymarket"] .contact-link,
[data-theme="polymarket"] .registration-card { box-shadow: 0 18px 55px rgb(37 73 130 / 12%); }
[data-theme="polymarket"] .registration-card h1,
[data-theme="polymarket"] .amount-panel h2,
[data-theme="polymarket"] .amount,
[data-theme="polymarket"] .panel-heading h2,
[data-theme="polymarket"] .profile-copy h1,
[data-theme="polymarket"] dd,
[data-theme="polymarket"] .nav-copy strong,
[data-theme="polymarket"] .contact-copy strong { color: var(--theme-text); }
[data-theme="polymarket"] .secondary-button,
[data-theme="polymarket"] .icon-button { color: #24405f; background: #eef3fa; }
[data-theme="binance"] .primary-button,
[data-theme="bybit"] .primary-button { color: #111820; }

/* Brand-inspired layouts: each preset changes structure, spacing and surface language. */
[data-theme] body::before { background-image: none; }
[data-theme] .profile-header,
[data-theme] .panel,
[data-theme] .contact-link { backdrop-filter: none; }

/* Polymarket — bright market cards, restrained borders and compact blue actions. */
[data-theme="polymarket"] {
  --theme-accent: #2e5cff;
  --theme-bg: #f7f8fa;
  --theme-surface: #ffffff;
  --theme-text: #101828;
  --text-secondary: #475467;
  --muted: #667085;
  --border: #e4e7ec;
  --border-soft: #eaecf0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}
[data-theme="polymarket"] body { background: #f7f8fa; }
[data-theme="polymarket"] body::after { background: radial-gradient(circle at 50% -12rem, rgb(46 92 255 / 10%), transparent 36rem); }
[data-theme="polymarket"] .app-shell { width: min(100%, 520px); }
[data-theme="polymarket"] .profile-header {
  min-height: 92px;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 12px rgb(16 24 40 / 5%);
}
[data-theme="polymarket"] .profile-header::before,
[data-theme="polymarket"] .profile-header::after,
[data-theme="polymarket"] .profile-header-glow,
[data-theme="polymarket"] .panel::before { display: none; }
[data-theme="polymarket"] .brand-mark { border: 0; border-radius: 7px; background: #2e5cff; color: #fff; box-shadow: none; }
[data-theme="polymarket"] .brand-copy strong { font-size: 23px; font-weight: 700; letter-spacing: -.04em; }
[data-theme="polymarket"] .brand-copy small,
[data-theme="polymarket"] .profile-eyebrow { color: #667085; }
[data-theme="polymarket"] .profile-eyebrow i { background: #12b76a; box-shadow: none; }
[data-theme="polymarket"] .avatar { border: 1px solid #d0d5dd; outline: 0; background: #f2f4f7; color: #344054; box-shadow: none; }
[data-theme="polymarket"] .page-nav { margin-block: 12px; }
[data-theme="polymarket"] .nav-icon { border-color: #e4e7ec; border-radius: 8px; background: #fff; box-shadow: none; }
[data-theme="polymarket"] .timer { border-color: #e4e7ec; border-radius: 8px; background: #fff; box-shadow: none; }
[data-theme="polymarket"] .panel { border-color: #e4e7ec; border-radius: 12px; background: #fff; box-shadow: 0 4px 14px rgb(16 24 40 / 6%); }
[data-theme="polymarket"] .amount-panel { padding: 22px; background: #fff; }
[data-theme="polymarket"] .amount-panel::after { display: none; }
[data-theme="polymarket"] .section-icon { border: 0; border-radius: 7px; background: #eef2ff; }
[data-theme="polymarket"] .section-label { color: #344054; text-transform: none; }
[data-theme="polymarket"] .secure-badge { border-color: #d1fadf; background: #ecfdf3; color: #067647; }
[data-theme="polymarket"] .amount { margin-block: 18px 13px; font-size: clamp(42px, 12vw, 54px); font-weight: 700; text-shadow: none; }
[data-theme="polymarket"] .panel-heading { min-height: 76px; border-color: #eaecf0; background: #fcfcfd; }
[data-theme="polymarket"] .verified-mark { border: 0; border-radius: 8px; background: #eef2ff; }
[data-theme="polymarket"] .detail-row { min-height: 74px; }
[data-theme="polymarket"] .icon-button { border-color: #e4e7ec; border-radius: 8px; background: #f9fafb; box-shadow: none; }
[data-theme="polymarket"] .warning { border-radius: 10px; border-color: #fedf89; background: #fffaeb; color: #93370d; }
[data-theme="polymarket"] .primary-button { border: 0; border-radius: 8px; background: #2e5cff; color: #fff; box-shadow: none; }
[data-theme="polymarket"] .secondary-button { border-color: #d0d5dd; border-radius: 8px; background: #fff; }
[data-theme="polymarket"] .contact-link { border-color: #e4e7ec; border-radius: 10px; background: #fff; box-shadow: none; }

/* Bybit — sharp graphite trading surfaces with energetic orange accents. */
[data-theme="bybit"] {
  --text-secondary: #adb1b8;
  --muted: #7b818b;
  --border: #2b2f36;
  --border-soft: #25282e;
}
[data-theme="bybit"] body { background: #0b0e11; }
[data-theme="bybit"] body::after { background: linear-gradient(135deg, rgb(247 166 0 / 5%), transparent 38%); }
[data-theme="bybit"] .profile-header { min-height: 96px; border-color: #2b2f36; border-radius: 8px; background: #17191e; box-shadow: 0 18px 48px rgb(0 0 0 / 34%); }
[data-theme="bybit"] .profile-header::before { top: auto; right: 0; bottom: 0; left: auto; width: 130px; height: 5px; border-radius: 0; background: var(--theme-accent); transform: skewX(-28deg); }
[data-theme="bybit"] .profile-header::after,
[data-theme="bybit"] .profile-header-glow,
[data-theme="bybit"] .panel::before { display: none; }
[data-theme="bybit"] .brand-mark { border: 0; border-radius: 4px; background: var(--theme-accent); color: #111; box-shadow: none; }
[data-theme="bybit"] .brand-copy strong { font-size: 25px; font-weight: 800; letter-spacing: -.06em; text-transform: uppercase; }
[data-theme="bybit"] .brand-copy small { color: #858b94; }
[data-theme="bybit"] .avatar { border-color: #f7a600; outline: 0; border-radius: 8px; background: #23262d; box-shadow: none; }
[data-theme="bybit"] .nav-icon,
[data-theme="bybit"] .timer { border-color: #2b2f36; border-radius: 6px; background: #17191e; box-shadow: none; }
[data-theme="bybit"] .panel { border-color: #2b2f36; border-radius: 8px; background: #17191e; box-shadow: 0 18px 48px rgb(0 0 0 / 30%); }
[data-theme="bybit"] .amount-panel { border-left: 4px solid var(--theme-accent); background: linear-gradient(115deg, #1b1d22, #121419); }
[data-theme="bybit"] .amount-panel::after { display: none; }
[data-theme="bybit"] .section-icon { border: 0; border-radius: 4px; background: rgb(247 166 0 / 12%); }
[data-theme="bybit"] .section-label { color: #d7d9dd; }
[data-theme="bybit"] .secure-badge { border: 0; border-radius: 4px; background: rgb(247 166 0 / 12%); color: #f7a600; }
[data-theme="bybit"] .secure-badge i { background: #f7a600; box-shadow: none; }
[data-theme="bybit"] .amount { color: #fff; font-weight: 750; text-shadow: none; }
[data-theme="bybit"] .panel-heading { border-color: #2b2f36; background: #14161a; }
[data-theme="bybit"] .verified-mark { border: 0; border-radius: 5px; background: rgb(247 166 0 / 10%); }
[data-theme="bybit"] .icon-button { border-color: #353941; border-radius: 5px; background: #21242a; box-shadow: none; }
[data-theme="bybit"] .warning { border-radius: 6px; border-color: #4a3a18; background: #221d13; }
[data-theme="bybit"] .primary-button { border: 0; border-radius: 5px; background: #f7a600; box-shadow: none; }
[data-theme="bybit"] .secondary-button,
[data-theme="bybit"] .contact-link { border-color: #343840; border-radius: 5px; background: #17191e; box-shadow: none; }

/* MEXC — neutral black trading canvas, blue signal color and modular panels. */
[data-theme="mexc"] {
  --text-secondary: #a7abb3;
  --muted: #777d88;
  --border: #292c33;
  --border-soft: #25282f;
}
[data-theme="mexc"] body { background: #0b0c10; }
[data-theme="mexc"] body::after { background: radial-gradient(circle at 70% -10%, rgb(49 100 250 / 10%), transparent 34rem); }
[data-theme="mexc"] .profile-header { min-height: 98px; border-color: #292c33; border-radius: 12px; background: linear-gradient(120deg, #191b21, #111318); box-shadow: 0 20px 52px rgb(0 0 0 / 36%); }
[data-theme="mexc"] .profile-header::before { inset: 0 auto 0 0; width: 4px; height: auto; border-radius: 0; background: var(--theme-accent); }
[data-theme="mexc"] .profile-header::after,
[data-theme="mexc"] .profile-header-glow,
[data-theme="mexc"] .panel::before { display: none; }
[data-theme="mexc"] .brand-mark { border: 0; border-radius: 10px; background: var(--theme-accent); color: #fff; box-shadow: 0 8px 22px rgb(49 100 250 / 22%); }
[data-theme="mexc"] .brand-copy strong { font-size: 25px; font-weight: 780; letter-spacing: -.04em; }
[data-theme="mexc"] .avatar { border-color: #3d465b; outline: 0; background: #21242c; box-shadow: none; }
[data-theme="mexc"] .nav-icon,
[data-theme="mexc"] .timer { border-color: #292c33; border-radius: 9px; background: #15171d; box-shadow: none; }
[data-theme="mexc"] .panel { border-color: #292c33; border-radius: 12px; background: #15171d; box-shadow: 0 20px 52px rgb(0 0 0 / 34%); }
[data-theme="mexc"] .amount-panel { background: linear-gradient(145deg, #191c24, #121419); }
[data-theme="mexc"] .amount-panel::after { right: auto; left: 0; width: 100%; background: linear-gradient(90deg, var(--theme-accent), transparent); }
[data-theme="mexc"] .section-icon { border: 0; border-radius: 8px; background: rgb(49 100 250 / 13%); }
[data-theme="mexc"] .section-label { color: #cbd1dc; }
[data-theme="mexc"] .secure-badge { border-color: rgb(49 100 250 / 26%); background: rgb(49 100 250 / 10%); color: #7999ff; }
[data-theme="mexc"] .secure-badge i { background: #5680ff; box-shadow: none; }
[data-theme="mexc"] .amount { color: #fff; font-weight: 760; text-shadow: none; }
[data-theme="mexc"] .panel-heading { border-color: #292c33; background: #181a20; }
[data-theme="mexc"] .verified-mark { border-color: rgb(49 100 250 / 24%); border-radius: 8px; background: rgb(49 100 250 / 10%); }
[data-theme="mexc"] .icon-button { border-color: #30343d; border-radius: 8px; background: #1b1e25; box-shadow: none; }
[data-theme="mexc"] .warning { border-radius: 9px; border-color: #333844; background: #171a21; }
[data-theme="mexc"] .primary-button { border: 0; border-radius: 8px; background: #3164fa; color: #fff; box-shadow: 0 12px 28px rgb(49 100 250 / 22%); }
[data-theme="mexc"] .secondary-button,
[data-theme="mexc"] .contact-link { border-color: #30343d; border-radius: 8px; background: #15171d; box-shadow: none; }

/* Binance — flat graphite blocks, compact spacing and yellow square accents. */
[data-theme="binance"] {
  --text-secondary: #b7bdc6;
  --muted: #848e9c;
  --border: #2b3139;
  --border-soft: #2b3139;
}
[data-theme="binance"] body { background: #181a20; }
[data-theme="binance"] body::after { display: none; }
[data-theme="binance"] .profile-header { min-height: 94px; border-color: #2b3139; border-radius: 8px; background: #1e2329; box-shadow: 0 18px 46px rgb(0 0 0 / 28%); }
[data-theme="binance"] .profile-header::before,
[data-theme="binance"] .profile-header::after,
[data-theme="binance"] .profile-header-glow,
[data-theme="binance"] .panel::before { display: none; }
[data-theme="binance"] .brand-mark { border: 0; border-radius: 6px; background: #f0b90b; color: #181a20; box-shadow: none; transform: rotate(0); }
[data-theme="binance"] .brand-mark:not(:has(img))::after { position: absolute; width: 10px; height: 10px; border: 2px solid currentColor; transform: rotate(45deg); content: ""; }
[data-theme="binance"] .brand-copy strong { font-size: 24px; font-weight: 760; letter-spacing: -.04em; }
[data-theme="binance"] .brand-copy small { color: #848e9c; }
[data-theme="binance"] .avatar { border-color: #474d57; outline: 0; background: #2b3139; box-shadow: none; }
[data-theme="binance"] .nav-icon,
[data-theme="binance"] .timer { border-color: #2b3139; border-radius: 6px; background: #1e2329; box-shadow: none; }
[data-theme="binance"] .panel { border-color: #2b3139; border-radius: 8px; background: #1e2329; box-shadow: 0 18px 46px rgb(0 0 0 / 28%); }
[data-theme="binance"] .amount-panel { background: #1e2329; }
[data-theme="binance"] .amount-panel::after { display: none; }
[data-theme="binance"] .section-icon { border: 0; border-radius: 5px; background: rgb(240 185 11 / 12%); }
[data-theme="binance"] .section-label { color: #eaecef; }
[data-theme="binance"] .secure-badge { border: 0; border-radius: 4px; background: rgb(240 185 11 / 10%); color: #f0b90b; }
[data-theme="binance"] .secure-badge i { border-radius: 1px; background: #f0b90b; box-shadow: none; transform: rotate(45deg); }
[data-theme="binance"] .amount { color: #f0b90b; font-weight: 680; text-shadow: none; }
[data-theme="binance"] .panel-heading { border-color: #2b3139; background: #20252b; }
[data-theme="binance"] .verified-mark { border: 0; border-radius: 5px; background: rgb(240 185 11 / 10%); }
[data-theme="binance"] .detail-row { min-height: 76px; }
[data-theme="binance"] .icon-button { border-color: #3c4149; border-radius: 5px; background: #2b3139; box-shadow: none; }
[data-theme="binance"] .warning { border-radius: 6px; border-color: #544615; background: #25230f; }
[data-theme="binance"] .primary-button { border: 0; border-radius: 5px; background: #f0b90b; box-shadow: none; }
[data-theme="binance"] .secondary-button,
[data-theme="binance"] .contact-link { border-color: #3c4149; border-radius: 5px; background: #1e2329; box-shadow: none; }

/* Uploaded brand images stay centered and keep their natural proportions. */
.brand-mark.has-image {
  flex-basis: 50px;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 15px;
  background: transparent;
  box-shadow: 0 8px 22px rgb(0 0 0 / 22%);
  transform: none;
}
.dynamic-logo.has-image img {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: cover;
  filter: none;
}
.brand-mark.has-image::before,
[data-theme="binance"] .brand-mark.has-image::after { display: none; }
.brand:hover .brand-mark.has-image { border-color: rgb(255 255 255 / 20%); box-shadow: 0 10px 26px rgb(0 0 0 / 26%); transform: translateY(-1px); }

/* The three main payment areas become clearly independent cards when enabled. */
.app-shell.blocks-separated .profile-header,
.app-shell.blocks-separated .panel { margin-bottom: 20px; border-width: 1px; box-shadow: 0 18px 48px rgb(0 0 0 / 30%); }
.app-shell.blocks-separated .profile-header { margin-bottom: 0; }
.app-shell.blocks-separated .page-nav { margin-block: 14px; }
.app-shell.blocks-separated .amount-panel,
.app-shell.blocks-separated .bank-panel { isolation: isolate; }

.app-shell.blocks-joined .page-nav { margin-block: 0 12px; }
.app-shell.blocks-joined .profile-header,
.app-shell.blocks-joined .panel { margin-bottom: 0; border-radius: 0; box-shadow: none; }
.app-shell.blocks-joined .profile-header:not(.joined-block-first),
.app-shell.blocks-joined .panel:not(.joined-block-first) { border-top-width: 0; }
.app-shell.blocks-joined .joined-block-first { border-radius: 18px 18px 0 0; }
.app-shell.blocks-joined .joined-block-last { margin-bottom: 18px; border-radius: 0 0 18px 18px; }
.app-shell.blocks-joined .joined-block-first.joined-block-last { border-radius: 18px; }
