* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Keep native scrolling behavior, but hide scrollbar UI chrome. */
* {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

*::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

:root {
  --bg-0: #05040f;
  --bg-1: #0d0a1f;
  --bg-2: #140d2f;
  --ink: #f2eeff;
  --muted: #bbb3d8;
  --line: rgba(255, 255, 255, 0.12);
  --card: rgba(18, 14, 38, 0.68);
  --card-strong: rgba(22, 14, 45, 0.9);
  --accent-a: #8f6fff;
  --accent-b: #b366ff;
  --accent-c: #61b7ff;
  --accent-d: #6f4dff;
  --accent-e: #cdbdff;
  --radius-lg: 24px;
  --radius-md: 16px;
  --safe-top: max(18px, env(safe-area-inset-top));
  --safe-bottom: max(22px, env(safe-area-inset-bottom));
  --dock-height: 96px;
  --dock-clearance: var(--dock-height);
  --template-logo-x: 40%;
}

.shop-token-network-wrap {
  margin-top: 2px;
}

html,
body {
  min-height: 100%;
  background:
    radial-gradient(80% 100% at 12% 5%, rgba(179, 102, 255, 0.18), transparent 60%),
    radial-gradient(70% 90% at 90% 8%, rgba(111, 77, 255, 0.22), transparent 70%),
    radial-gradient(90% 90% at 50% 110%, rgba(97, 183, 255, 0.13), transparent 70%),
    linear-gradient(165deg, var(--bg-0) 0%, var(--bg-1) 45%, var(--bg-2) 100%);
  color: var(--ink);
  font-family: Manrope, "Segoe UI", sans-serif;
}

body {
  position: relative;
  overflow: hidden;
  height: 100dvh;
}

body.booting .screen {
  display: none !important;
}

body.booting #screen-loading {
  display: grid !important;
}

body.booting #account-open-admin {
  display: none !important;
}

.particles,
.bg-orb,
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.particles {
  z-index: 160;
}

.bg-orb {
  inset: auto;
  border-radius: 999px;
  filter: blur(42px);
  opacity: 0.55;
}

.orb-a {
  width: 220px;
  height: 220px;
  top: -80px;
  right: -60px;
  background: var(--accent-a);
  animation: drift 12s ease-in-out infinite;
}

.orb-b {
  width: 260px;
  height: 260px;
  bottom: -120px;
  left: -110px;
  background: var(--accent-b);
  animation: drift 14s ease-in-out infinite reverse;
}

.bg-grid {
  background-image:
    linear-gradient(rgba(173, 153, 240, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(173, 153, 240, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(circle at center, black 10%, transparent 88%);
}

.shell {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  margin: 0 auto;
  padding: var(--safe-top) 18px calc(var(--safe-bottom) + 12px);
  height: 100dvh;
  display: grid;
  overflow: hidden;
}

.screen {
  display: none;
  position: relative;
  align-content: center;
  gap: 10px;
  background: linear-gradient(145deg, var(--card), var(--card-strong));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  box-shadow: 0 30px 70px rgba(3, 2, 9, 0.6);
  backdrop-filter: blur(12px);
  animation: reveal 360ms cubic-bezier(0.2, 0.75, 0.24, 1);
  overflow: hidden;
}

.screen.active {
  display: grid;
}

.hidden {
  display: none !important;
}

.skip-corner {
  position: absolute;
  top: 22px;
  right: 20px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.85rem;
}

.hero-badge {
  width: 72px;
  height: 72px;
  margin: 4px auto 2px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 1.65rem;
  background: radial-gradient(circle at 35% 30%, rgba(179, 102, 255, 0.35), rgba(35, 20, 76, 0.92));
  border: 1px solid rgba(179, 102, 255, 0.5);
}

.hero-title,
.section-title,
.username {
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.15;
}

.hero-title {
  font-size: clamp(1.85rem, 6vw, 2.65rem);
  text-align: center;
}

#screen-start .hero-title {
  font-size: clamp(1.32rem, 4.56vw, 1.74rem);
}

.phantom-label {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(183, 140, 255, 0.85);
  text-align: center;
}

.section-title {
  font-size: clamp(1.28rem, 4.8vw, 1.86rem);
  text-align: center;
}

.hero-copy,
.userid {
  color: var(--muted);
  line-height: 1.55;
}

.hero-copy {
  text-align: center;
  max-width: 46ch;
  margin-inline: auto;
}

.feature-list {
  display: grid;
  gap: 8px;
}

.feature-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 10px 13px;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 800;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.btn-primary {
  color: #f5f2ff;
  background: linear-gradient(120deg, var(--accent-d), #8f64ff 52%, #ae6fff);
}

.btn-secondary {
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.pager {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(214, 198, 255, 0.33);
}

.dot.active {
  width: 24px;
  background: linear-gradient(90deg, #b478ff, #6f4dff);
}

.loading-ring {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 6px solid rgba(233, 223, 255, 0.22);
  border-top-color: #be84ff;
  margin: 18px auto 8px;
  animation: spin 1s linear infinite;
}

#screen-app {
  align-content: stretch;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: linear-gradient(180deg, rgba(5, 7, 24, 0.97), rgba(5, 10, 34, 0.97));
  box-shadow: none;
}

.shell.app-mode {
  width: 100%;
  max-width: 100%;
  padding: 0;
}

.app-shell {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100dvh;
}

.app-stage {
  position: relative;
  min-height: 0;
  overflow: hidden;
  padding: 10px 12px var(--dock-clearance);
}

.app-view {
  position: absolute;
  inset: 0 12px var(--dock-clearance);
  display: grid;
  align-content: start;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
  overflow: hidden;
}

.app-view.active {
  opacity: 1;
  pointer-events: auto;
}

.app-view[data-view="home"] {
  inset: 0 0 var(--dock-clearance);
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 12px;
}

.app-view[data-view="home"] > :not(.header-card) {
  margin-left: 12px;
  margin-right: 12px;
}

.app-view.send-mode {
  display: flex;
  flex-direction: column;
  /* Expand over app-stage padding so send layout is edge-to-edge. */
  inset: -10px -12px var(--dock-clearance);
  gap: 6px;
  overflow: visible;
}

.header-card,
.panel,
.stat-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.header-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 14px;
}

.app-view[data-view="home"] .header-card {
  position: relative;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 6px 14px 10px;
  box-shadow: none;
}

.app-view[data-view="home"] .header-card::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  bottom: -1px;
  height: 1px;
  background: rgba(92, 117, 210, 0.3);
}

.profile-main {
  display: grid;
  grid-template-columns: 62px 1fr;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  object-fit: cover;
}

.eyebrow {
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #cdbdff;
}

.username {
  font-size: 1.2rem;
}

.userid {
  font-size: 0.88rem;
}

.user-title-row {
  display: flex;
  align-items: center;
  min-width: 0;
}

.user-title-row .username {
  min-width: 0;
}

.user-subline {
  display: block;
}

.user-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin-top: 6px;
  color: rgba(206, 219, 255, 0.74);
}

.user-meta-chip {
  display: inline-flex;
  align-items: center;
  padding: 0;
  color: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.user-meta-chip + .user-meta-chip::before {
  content: "•";
  margin: 0 8px;
  color: rgba(120, 146, 224, 0.58);
}

.user-meta-chip-rank {
  color: #ffcf76;
}

.user-meta-chip-rank.user-meta-chip-rank-none {
  color: #ff5a6b;
}

.balance-box {
  text-align: right;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.balance-topup-btn {
  margin-top: 5px;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 20px;
  border: 1.5px solid rgba(72,210,160,0.5);
  background: rgba(72,210,160,0.12);
  color: #6ee7b7;
  cursor: pointer;
  transition: background 180ms, border-color 180ms, color 180ms;
  white-space: nowrap;
}

.balance-topup-btn:hover,
.balance-topup-btn:focus-visible {
  background: rgba(72,210,160,0.22);
  border-color: rgba(72,210,160,0.75);
  color: #a7f3d0;
}

.balance-label {
  color: rgba(181, 197, 235, 0.78);
  font-size: 0.86rem;
}

.balance-value {
  font-family: "Space Grotesk", sans-serif;
  color: #b992ff;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  margin-top: 2px;
}

.home-hero {
  position: relative;
  overflow: hidden;
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(140deg, rgba(47, 27, 102, 0.9), rgba(29, 16, 68, 0.94));
}

.home-hero::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -62px;
  top: -44px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(172, 122, 255, 0.22), rgba(172, 122, 255, 0.05));
}

.home-kicker {
  color: #cdbdff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.home-welcome {
  margin-top: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.45rem, 5vw, 2.05rem);
}

.home-welcome span {
  color: #b48dff;
}

.home-links {
  margin-top: 8px;
  color: rgba(205, 192, 236, 0.82);
  font-size: 0.98rem;
}

.home-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.home-actions {
  display: grid;
  gap: 12px;
}

.home-stat-card {
  border: 1px solid rgba(115, 90, 186, 0.42);
  border-radius: 18px;
  background: rgba(22, 13, 48, 0.7);
  min-height: 92px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
}

.home-stat-value {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.home-stat-value.accent {
  color: #b48dff;
}

.home-stat-label {
  color: rgba(194, 178, 231, 0.74);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
}

.panel {
  padding: 12px;
}

.feed-title {
  font-weight: 700;
  font-size: 0.95rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
}

.chip {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  color: #ffd9a6;
  background: rgba(255, 182, 84, 0.16);
  border: 1px solid rgba(255, 205, 139, 0.34);
  border-radius: 999px;
  padding: 7px 11px;
}

.country-list,
.send-country-list,
.brand-template-list,
.template-form-grid,
.template-params-list {
  display: grid;
  gap: 10px;
}

.country-item,
.send-category,
.template-row {
  border: 1px solid rgba(43, 66, 127, 0.52);
  background: transparent;
  border-radius: 18px;
  padding: 14px 12px;
  display: grid;
  grid-template-columns: 62px 1fr auto;
  align-items: center;
  gap: 12px;
  color: #e9f0ff;
}

.template-row {
  grid-template-columns: 1fr auto;
  text-align: left;
}

.send-category {
  text-align: left;
}

.country-flag,
.send-category-icon {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: #0a1f55;
  border: 1px solid rgba(57, 89, 171, 0.55);
}

.send-category-icon svg {
  width: 28px;
  height: 28px;
  stroke: #d8e4ff;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.send-category-icon .crypto-glyph {
  width: 34px;
  height: 34px;
  stroke: none;
  display: block;
}

.send-category-icon .crypto-glyph text {
  fill: #d8e4ff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  font-weight: 700;
}

.send-category-copy {
  min-width: 0;
  text-align: left;
}

.send-category-title,
.country-name,
.template-row-title {
  font-weight: 700;
}

.send-category-title {
  font-size: 1.12rem;
}

.send-category-meta,
.template-row-meta,
.send-flow-subtitle {
  color: rgba(166, 186, 236, 0.9);
  font-size: 0.84rem;
}

.send-category-meta {
  margin-top: 3px;
}

.send-category-arrow {
  color: rgba(130, 154, 216, 0.85);
  font-size: 1.7rem;
  line-height: 1;
  margin-right: 6px;
}

.send-country-list .country-item {
  min-height: 84px;
  text-align: left;
}

.send-country-list .country-flag {
  width: 56px;
  height: 56px;
  font-size: 1.75rem;
  border-radius: 16px;
}

.send-country-list .country-name {
  justify-self: start;
  text-align: left;
  width: 100%;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}

.send-workspace {
  min-height: 0;
  flex: 1;
  height: 100%;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.app-view.send-mode .send-workspace {
  display: flex;
}

.send-placeholder {
  min-height: 248px;
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(150deg, rgba(11, 19, 54, 0.66), rgba(8, 14, 40, 0.76));
  border: 1px solid rgba(100, 126, 208, 0.28);
}

.home-send-cta {
  position: relative;
  overflow: hidden;
  width: 100%;
  border: 1px solid rgba(247, 237, 255, 0.62);
  border-radius: 22px;
  min-height: 82px;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 42%),
    linear-gradient(145deg, #be84ff, #8f64ff 52%, #6f4dff 100%);
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 12px;
  color: #eff6ff;
  text-align: left;
  padding: 0 16px;
  box-shadow:
    0 0 0 5px rgba(172, 120, 255, 0.14),
    0 12px 22px rgba(84, 56, 189, 0.56),
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -8px 16px rgba(37, 24, 99, 0.3);
}

.home-send-cta.is-depleted {
  border-color: rgba(152, 166, 201, 0.48);
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 42%),
    linear-gradient(145deg, #515b74, #414a61 52%, #363f53 100%);
  box-shadow:
    0 0 0 4px rgba(106, 118, 150, 0.16),
    0 10px 18px rgba(23, 30, 46, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -8px 16px rgba(19, 25, 39, 0.34);
}

.home-send-cta.is-depleted .home-send-copy strong,
.home-send-cta.is-depleted .home-send-copy span,
.home-send-cta.is-depleted .home-send-arrow,
.home-send-cta.is-depleted .home-send-icon {
  color: rgba(228, 236, 255, 0.82);
}

.home-send-cta::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 10px;
  right: 10px;
  width: auto;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0));
  opacity: 0.5;
  pointer-events: none;
}

.home-send-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(247, 237, 255, 0.48);
  font-size: 1.4rem;
}

.home-send-copy {
  display: grid;
  gap: 1px;
}

.home-send-copy strong {
  font-size: 2rem;
  font-size: 1.92rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.home-send-copy span {
  color: rgba(240, 232, 255, 0.84);
  font-size: 1.05rem;
}

.home-send-arrow {
  font-size: 1.85rem;
  color: rgba(240, 232, 255, 0.76);
}

.home-trial {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(22, 13, 48, 0.72);
  border: 1px solid rgba(255, 191, 83, 0.5);
  box-shadow:
    0 0 0 1px rgba(255, 191, 83, 0.12),
    0 0 20px rgba(255, 191, 83, 0.2),
    inset 0 1px 0 rgba(255, 227, 170, 0.22);
}

.home-trial::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(255, 191, 83, 0.06), rgba(255, 191, 83, 0));
  pointer-events: none;
}

.home-trial-title {
  color: #ffbf53;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
}

.home-trial-copy {
  margin-top: 4px;
  color: rgba(182, 200, 239, 0.78);
  font-size: 0.95rem;
}

.home-upgrade-btn {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 238, 196, 0.72);
  border-radius: 15px;
  min-height: 52px;
  padding: 0 20px;
  font-weight: 800;
  font-size: 1rem;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0) 45%),
    linear-gradient(145deg, #ffd25a, #ffbe34 45%, #ffac12);
  color: #10172d;
  box-shadow:
    0 10px 18px rgba(196, 126, 11, 0.48),
    0 0 0 4px rgba(255, 190, 64, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.44);
}

.home-upgrade-btn::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 10px;
  right: 10px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0));
  opacity: 0.72;
  pointer-events: none;
}

.home-pending-topup {
  position: relative;
  overflow: hidden;
  width: 100%;
  border: 1px solid rgba(111, 214, 173, 0.62);
  border-radius: 18px;
  padding: 13px 14px;
  background: linear-gradient(145deg, rgba(14, 47, 49, 0.86), rgba(14, 35, 41, 0.9));
  color: #dffcf1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  text-align: left;
  box-shadow:
    0 0 0 1px rgba(111, 214, 173, 0.16),
    0 8px 18px rgba(4, 24, 24, 0.45),
    inset 0 1px 0 rgba(190, 255, 228, 0.2);
}

.home-pending-topup-copy {
  display: grid;
  gap: 2px;
}

.home-pending-topup-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(187, 251, 227, 0.82);
}

.home-pending-topup #home-pending-topup-amount {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.12rem;
  line-height: 1.15;
}

.home-pending-topup-meta {
  font-size: 0.88rem;
  color: rgba(204, 244, 231, 0.78);
}

.home-pending-topup-arrow {
  font-size: 1.45rem;
  line-height: 1;
  color: rgba(211, 255, 241, 0.8);
}

.send-page-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid rgba(66, 86, 146, 0.34);
  border-bottom: 1px solid rgba(53, 72, 128, 0.42);
  background: #050b22;
}

.send-head-copy {
  flex: 1;
  min-width: 0;
}

.send-flow-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.08rem;
}

.send-back,
.send-current-country {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(92, 117, 194, 0.5);
  border-radius: 12px;
  background: rgba(20, 31, 77, 0.54);
  color: #d7e2ff;
  display: grid;
  place-items: center;
}

.send-back {
  cursor: pointer;
}

.send-back svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.send-current-country {
  font-size: 1.15rem;
  line-height: 1;
}

.send-flow {
  display: grid;
  grid-template-rows: 1fr;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}

.send-step {
  display: grid;
  gap: 9px;
  padding: 14px;
  min-height: 0;
  align-content: start;
  overflow-y: auto;
  overscroll-behavior: contain;
}

#send-step-templates {
  grid-template-rows: auto 1fr auto auto;
}

#send-step-templates .template-grid {
  grid-template-columns: 1fr;
  gap: 8px;
}

.template-grid.template-grid-send-match {
  grid-template-columns: 1fr;
  gap: 8px;
}

#send-step-template-form {
  align-content: start;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 10px;
  padding-bottom: 40px;
}

.send-category:disabled,
.send-category[aria-disabled="true"] {
  opacity: 0.48;
  cursor: not-allowed;
  background: rgba(10, 18, 46, 0.36);
}

.template-search {
  min-height: 46px;
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(72, 100, 183, 0.42);
  background: rgba(12, 23, 62, 0.82);
}

.template-search-icon {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: rgba(175, 201, 255, 0.92);
}

.template-search-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.template-search-input,
.form-control {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(72, 100, 183, 0.42);
  border-radius: 14px;
  background: rgba(12, 23, 62, 0.82);
  color: #eef4ff;
  padding: 0 14px;
  box-sizing: border-box;
  min-width: 0;
  font: inherit;
  outline: 0;
}

.template-search-input {
  border: 0;
  background: transparent;
  height: 44px;
  padding: 0;
}

.form-field {
  display: grid;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
}

.form-label {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  color: rgba(205, 220, 255, 0.94);
}

.form-help {
  color: rgba(154, 175, 229, 0.82);
  font-size: 0.8rem;
}

.template-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.template-form-head {
  margin-bottom: 2px;
}

.template-form-head > div:first-child {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.template-form-logo {
  width: 80px;
  height: 80px;
  border-radius: 14px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: var(--template-logo-x) center;
  background-color: rgba(20, 31, 77, 0.4);
  border: 1px solid rgba(85, 117, 203, 0.3);
  margin-left: auto;
  flex-shrink: 0;
}

.template-form-logo.template-form-logo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  line-height: 1;
}

.template-form-logo.template-form-logo-fallback svg {
  width: 34px;
  height: 34px;
}

.template-row-icon .crypto-glyph,
.template-form-logo.template-form-logo-fallback .crypto-glyph {
  width: 34px;
  height: 34px;
  stroke: none;
  display: block;
}

.template-row-icon .crypto-glyph text,
.template-form-logo.template-form-logo-fallback .crypto-glyph text {
  fill: #d8e4ff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  font-weight: 700;
}

.template-form-logo[data-brand] {
  background-repeat: no-repeat;
  background-position: center;
  background-size: 72% auto;
}

.template-form-logo[data-brand="binance"] {
  background-color: #0b0b0e;
  border-color: #f3d15c;
  background-image: url("assets/binance.webp");
}

.template-form-logo[data-brand="coinbase"] {
  background-color: #0052ff;
  border-color: #6ea4ff;
  background-image: url("assets/coinbase.png");
}

.template-form-logo[data-brand="kraken"] {
  background-color: #e6e8ee;
  border-color: #8b5cf6;
  background-image: url("assets/kraken.png");
  background-size: 64% auto;
}

.template-params-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(54, 78, 151, 0.46);
  background: rgba(9, 18, 47, 0.62);
}

.template-params-dev-note {
  color: rgba(214, 228, 255, 0.9);
  font-size: 0.88rem;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-content: start;
  width: 100%;
}

.template-tile {
  border: 1px solid rgba(140, 163, 231, 0.32);
  border-radius: 14px;
  min-height: 96px;
  display: grid;
  place-items: center;
  color: #f4f8ff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  cursor: pointer;
}

.brand-tile {
  grid-template-rows: 1fr auto;
  gap: 4px;
  padding: 8px 6px 7px;
  border-width: 1.5px;
}

.brand-variant-binance {
  background-color: #0b0b0e;
  border-color: #f3d15c;
  box-shadow: inset 0 0 0 1px rgba(243, 209, 92, 0.24);
}

.brand-variant-coinbase {
  background-color: #0052ff;
  border-color: #0052ff;
  box-shadow: inset 0 0 0 1px rgba(0, 82, 255, 0.28);
}

.brand-variant-kraken {
  background-color: #e6e8ee;
  border-color: #8b5cf6;
  box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.24);
}

.brand-logo {
  width: 100%;
  height: 40px;
  border-radius: 10px;
  background-repeat: no-repeat;
  background-position: var(--template-logo-x) center;
  background-size: 84% auto;
}

.brand-logo-binance {
  background-image: url("assets/binance.webp");
}

.brand-logo-coinbase {
  background-image: url("assets/coinbase.png");
}

.brand-logo-kraken {
  background-image: url("assets/kraken.png");
  background-position: center center;
  background-size: 76% auto;
}

.brand-name {
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
}

.brand-variant-kraken .brand-name {
  color: #1f2a37;
}

.no-templates-state {
  border: 1px dashed rgba(90, 117, 191, 0.45);
  border-radius: 14px;
  background: rgba(8, 16, 43, 0.72);
  color: rgba(166, 186, 236, 0.88);
  font-size: 0.82rem;
  padding: 12px;
  text-align: left;
}

.no-templates-icon {
  display: none;
}

.template-pagination {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
}

.template-page-info {
  margin: 0;
  text-align: center;
  justify-self: center;
}

.template-page-btn {
  min-width: 72px;
  height: 38px;
  border: 1px solid rgba(76, 104, 186, 0.44);
  border-radius: 12px;
  background: rgba(13, 24, 64, 0.84);
  color: #e7efff;
  font: inherit;
  font-weight: 700;
}

.send-progress-container {
  margin-bottom: 12px;
}

.send-progress-bar-track {
  width: 100%;
  height: 3px;
  background: rgba(60, 80, 140, 0.3);
  border-radius: 999px;
  overflow: hidden;
}

.send-progress-bar {
  height: 100%;
  width: 0%;
  background: rgba(112, 143, 230, 0.6);
  transition: width 0.3s ease;
}

.send-progress-bar.success {
  background: #10b981;
  width: 100%;
}

.send-progress-bar.error {
  background: #ef4444;
  width: 100%;
}

.send-progress-bar.loading {
  animation: progressPulse 1.8s ease-in-out infinite;
}

.send-progress-text {
  margin-top: 8px;
  color: rgba(218, 229, 255, 0.94);
  font-size: 0.86rem;
}

.send-progress-link {
  color: #9fc0ff;
  text-decoration: underline;
}

.template-preview-btn {
  width: 100%;
  margin-top: 4px;
  margin-bottom: 2px;
}

.template-preview-btn:disabled {
  opacity: 0.46;
  cursor: not-allowed;
}

.preview-email-link-container {
  display: flex;
  justify-content: center;
  padding: 4px 0 10px;
  margin-top: 0;
}

.preview-email-link {
  background: none;
  border: none;
  color: #a78dff;
  font-size: 0.9rem;
  text-decoration: underline;
}

.send-feedback {
  margin-top: 4px;
  color: #f6d8ff;
  font-size: 0.86rem;
}

.deferred-home {
  display: none !important;
}

.app-view.send-mode .header-card {
  display: none;
}

.app-view.send-mode .home-hero,
.app-view.send-mode .home-stats,
.app-view.send-mode .home-actions {
  display: none;
}

.bottom-dock {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 140;
  height: var(--dock-height);
  min-height: 96px;
  display: none;
  padding: 26px 10px calc(var(--safe-bottom) + 6px);
  background: linear-gradient(180deg, rgba(11, 16, 43, 0.98), rgba(7, 11, 32, 0.98));
  border-top: 1px solid rgba(92, 117, 210, 0.3);
  isolation: isolate;
  will-change: transform, opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.shell.app-mode .bottom-dock,
#screen-app.active .bottom-dock {
  display: block;
}

.bottom-dock.is-forced-visible {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: block !important;
  visibility: visible;
  opacity: 1;
}

.bottom-dock.is-forced-visible .dock-send,
.bottom-dock.is-forced-visible .dock-options,
.bottom-dock.is-forced-visible .dock-item,
.bottom-dock.is-forced-visible .dock-label,
.bottom-dock.is-forced-visible .dock-icon,
.bottom-dock.is-forced-visible .dock-send-chip {
  visibility: visible;
  opacity: 1;
}

.dock-options {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  margin-top: -6px;
  transform: translateY(-8px);
}

.dock-options .dock-item:nth-child(1) { grid-column: 1; }
.dock-options .dock-item:nth-child(2) { grid-column: 2; }
.dock-options .dock-item:nth-child(3) { grid-column: 4; }
.dock-options .dock-item:nth-child(4) { grid-column: 5; }

.dock-item {
  position: relative;
  border: 0;
  background: transparent;
  color: rgba(214, 198, 255, 0.75);
  display: grid;
  justify-items: center;
  gap: 3px;
  font-size: 0.72rem;
}

.dock-item::before {
  content: "";
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #7eb1ff, #c58aff);
  margin-bottom: 2px;
  opacity: 0;
}

.dock-item.active {
  color: #fff;
}

.dock-item.active::before {
  opacity: 1;
}

.dock-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dock-label {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.66rem;
}

.dock-send {
  position: absolute;
  top: 0;
  left: 50%;
  width: 84px;
  border: 0;
  background: transparent;
  color: #ffffff;
  display: grid;
  justify-items: center;
  padding: 0;
  transform: translate(-50%, -38%);
}

.dock-send::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -18px;
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #7eb1ff, #c58aff);
  transform: translateX(-50%);
  opacity: 0;
}

.dock-send.active::after {
  opacity: 1;
}

.dock-send-chip {
  position: relative;
  overflow: hidden;
  width: 64px;
  height: 46px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0) 45%),
    linear-gradient(145deg, #be84ff, #8f64ff 52%, #6f4dff 100%);
  border: 1px solid rgba(247, 237, 255, 0.62);
  box-shadow:
    0 0 0 5px rgba(172, 120, 255, 0.14),
    0 12px 22px rgba(84, 56, 189, 0.56),
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -8px 16px rgba(37, 24, 99, 0.3);
}

.dock-send.is-depleted .dock-send-chip {
  border-color: rgba(152, 166, 201, 0.5);
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 45%),
    linear-gradient(145deg, #515b74, #414a61 52%, #363f53 100%);
  box-shadow:
    0 0 0 4px rgba(106, 118, 150, 0.14),
    0 10px 18px rgba(23, 30, 46, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    inset 0 -8px 16px rgba(19, 25, 39, 0.34);
}

.dock-send.is-depleted .dock-send-chip svg {
  stroke: rgba(240, 245, 255, 0.84);
}

.dock-send-chip::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 8px;
  right: 8px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0));
  opacity: 0.72;
  pointer-events: none;
}

.dock-send-chip svg {
  width: 22px;
  height: 22px;
  stroke: #fcf9ff;
  stroke-width: 1.9;
}

.status {
  text-align: center;
}

.app-view[data-view="account"] .header-card {
  position: relative;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 6px 14px 10px;
  box-shadow: none;
}

.app-view[data-view="account"] .header-card::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  bottom: -1px;
  height: 1px;
  background: rgba(92, 117, 210, 0.3);
}

.app-view[data-view="account"] {
  inset: 0 0 var(--dock-clearance);
  overflow-x: visible;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.app-view[data-view="account"] > :not(.header-card) {
  margin-left: 12px;
  margin-right: 12px;
}

.account-settings-panel {
  display: grid;
  gap: 12px;
  padding-bottom: 16px;
}

.account-settings-list {
  display: grid;
  gap: 8px;
}

.account-setting-row {
  border: 1px solid rgba(92, 117, 210, 0.3);
  border-radius: 14px;
  background: rgba(11, 9, 28, 0.72);
  color: var(--ink);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  width: 100%;
  appearance: none;
  text-decoration: none;
  cursor: pointer;
}

.account-setting-row-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(92, 117, 210, 0.18);
  border: 1px solid rgba(92, 117, 210, 0.38);
  flex: 0 0 auto;
}

.account-setting-row-icon svg {
  width: 18px;
  height: 18px;
  stroke: rgba(214, 223, 255, 0.95);
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-setting-row-label {
  font-size: 0.92rem;
  font-weight: 700;
  flex: 1;
}

.account-setting-row-copy {
  display: grid;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.account-setting-row-note {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(184, 199, 240, 0.86);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-setting-row-note-no-membership {
  color: #ff7f8b;
}

.account-setting-inline-btn {
  width: fit-content;
  border: 1px solid rgba(255, 238, 196, 0.72);
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0) 45%),
    linear-gradient(145deg, #ffd25a, #ffbe34 45%, #ffac12);
  color: #10172d;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow:
    0 8px 14px rgba(196, 126, 11, 0.42),
    0 0 0 3px rgba(255, 190, 64, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.44);
}

.account-setting-inline-btn:hover,
.account-setting-inline-btn:focus-visible {
  border-color: rgba(255, 238, 196, 0.9);
  filter: brightness(1.03);
}

.account-setting-inline-btn-star {
  color: #7a4f00;
  font-size: 0.85rem;
  line-height: 1;
}

.account-setting-row-arrow {
  margin-left: auto;
  color: rgba(186, 170, 230, 0.75);
  font-size: 1.1rem;
  line-height: 1;
}

.account-setting-row-static {
  cursor: default;
}

.account-setting-row-membership-inactive {
  border-color: rgba(230, 90, 80, 0.46);
  background: rgba(230, 90, 80, 0.12);
  color: rgba(255, 196, 191, 0.97);
}

.account-setting-row-membership-active {
  border-color: rgba(255, 197, 92, 0.5);
  background: rgba(255, 184, 58, 0.14);
  color: rgba(255, 231, 179, 0.98);
}

.account-setting-row-support {
  border-color: rgba(111, 178, 255, 0.45);
  background: rgba(82, 156, 255, 0.11);
  color: rgba(209, 234, 255, 0.98);
}

.account-setting-row-support:hover,
.account-setting-row-support:focus-visible {
  background: rgba(82, 156, 255, 0.2);
  border-color: rgba(127, 194, 255, 0.72);
}

.account-setting-row-lock {
  border-color: rgba(171, 120, 255, 0.46);
  background: rgba(153, 96, 255, 0.12);
  color: rgba(235, 217, 255, 0.98);
}

.account-setting-row-lock:hover,
.account-setting-row-lock:focus-visible {
  background: rgba(153, 96, 255, 0.22);
  border-color: rgba(196, 150, 255, 0.78);
}

.account-setting-row-referrals {
  border-color: rgba(63, 196, 184, 0.5);
  background: rgba(34, 154, 145, 0.14);
  color: rgba(212, 255, 248, 0.98);
}

.account-setting-row-referrals:hover,
.account-setting-row-referrals:focus-visible {
  background: rgba(34, 154, 145, 0.22);
  border-color: rgba(99, 228, 213, 0.78);
}

.account-setting-row-icon-membership {
  background: rgba(255, 176, 86, 0.16);
  border-color: rgba(255, 176, 86, 0.35);
}

.account-setting-row-icon-membership svg {
  stroke: rgba(255, 214, 152, 0.98);
}

.account-setting-row-icon-membership-inactive {
  background: rgba(230, 90, 80, 0.2);
  border-color: rgba(230, 90, 80, 0.46);
}

.account-setting-row-icon-membership-inactive svg {
  stroke: rgba(255, 196, 191, 0.98);
}

.account-setting-row-icon-membership-active {
  background: rgba(255, 184, 58, 0.22);
  border-color: rgba(255, 197, 92, 0.48);
}

.account-setting-row-icon-membership-active svg {
  stroke: rgba(255, 229, 168, 0.98);
}

.account-setting-row-icon-support {
  background: rgba(82, 156, 255, 0.2);
  border-color: rgba(82, 156, 255, 0.4);
}

.account-setting-row-icon-support svg {
  stroke: rgba(216, 238, 255, 0.98);
}

.account-setting-row-icon-lock {
  background: rgba(153, 96, 255, 0.24);
  border-color: rgba(171, 120, 255, 0.45);
}

.account-setting-row-icon-lock svg {
  stroke: rgba(239, 226, 255, 0.98);
}

.account-setting-row-icon-referrals {
  background: rgba(37, 186, 173, 0.22);
  border-color: rgba(74, 205, 192, 0.48);
}

.account-setting-row-icon-referrals svg {
  stroke: rgba(220, 255, 250, 0.98);
}

.account-setting-row-danger {
  border-color: rgba(146, 156, 182, 0.45);
  background: rgba(96, 106, 128, 0.16);
  color: rgba(226, 232, 246, 0.94);
}

.account-setting-row-danger:hover,
.account-setting-row-danger:focus-visible {
  background: rgba(106, 118, 142, 0.24);
  border-color: rgba(166, 178, 206, 0.72);
}

.account-setting-row-admin {
  border-color: rgba(152, 168, 206, 0.48);
  background: rgba(112, 126, 158, 0.16);
  color: rgba(231, 238, 251, 0.96);
}

.account-setting-row-admin:hover,
.account-setting-row-admin:focus-visible {
  background: rgba(124, 138, 174, 0.24);
  border-color: rgba(177, 193, 229, 0.74);
}

.account-setting-row-icon-admin {
  background: rgba(136, 151, 186, 0.24);
  border-color: rgba(152, 168, 206, 0.5);
}

.account-setting-row-icon-admin svg {
  stroke: rgba(235, 242, 255, 0.98);
}

.account-setting-row-icon-danger {
  background: rgba(122, 133, 158, 0.22);
  border-color: rgba(146, 156, 182, 0.48);
}

.account-setting-row-icon-danger svg {
  stroke: rgba(226, 232, 246, 0.98);
}

.account-lock-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(92, 117, 210, 0.28);
  border-radius: 16px;
  background: rgba(11, 9, 28, 0.72);
  padding: 12px;
}

.account-setting-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(186, 170, 230, 0.72);
}

.account-lock-type {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  border: 1px solid rgba(100, 83, 175, 0.32);
  border-radius: 12px;
  padding: 4px;
  background: rgba(16, 12, 38, 0.8);
}

.account-lock-type-btn {
  border: 0;
  border-radius: 9px;
  padding: 8px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(196, 168, 255, 0.66);
  background: transparent;
}

.account-lock-type-btn.active {
  color: #efe7ff;
  background: linear-gradient(135deg, rgba(180, 120, 255, 0.28), rgba(111, 77, 255, 0.2));
}

.account-lock-warning {
  border: 1px solid rgba(230, 90, 80, 0.45);
  background: rgba(230, 90, 80, 0.12);
  color: rgba(255, 178, 172, 0.94);
  border-radius: 12px;
  padding: 9px 10px;
  font-size: 0.78rem;
  line-height: 1.45;
}

.account-pin-keypad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.account-pin-key {
  border: 1px solid rgba(111, 77, 255, 0.38);
  border-radius: 14px;
  background: rgba(111, 77, 255, 0.14);
  color: #efe7ff;
  min-height: 42px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.account-pin-key:hover,
.account-pin-key:focus-visible {
  background: rgba(111, 77, 255, 0.24);
  border-color: rgba(171, 120, 255, 0.72);
}

.account-pin-key-action {
  font-size: 0.8rem;
  font-weight: 600;
}

.account-pin-field-active .form-control {
  border-color: rgba(171, 120, 255, 0.72);
  box-shadow: 0 0 0 2px rgba(111, 77, 255, 0.18);
}

.account-lock-status {
  font-size: 0.8rem;
  color: rgba(196, 168, 255, 0.8);
}

.account-lock-status-ready {
  color: rgba(143, 255, 193, 0.96);
}

.account-delete-btn {
  border: 1px solid rgba(230, 90, 80, 0.55);
  background: rgba(230, 90, 80, 0.14);
  color: rgba(255, 178, 172, 0.96);
}

.account-delete-btn:hover,
.account-delete-btn:focus-visible {
  background: rgba(230, 90, 80, 0.22);
  border-color: rgba(245, 110, 100, 0.72);
}

.app-lock-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(6, 5, 16, 0.88);
  backdrop-filter: blur(10px);
}

.account-lock-settings-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  margin: 0;
  z-index: 1300;
  display: grid;
  place-items: start center;
  padding: 18px;
  box-sizing: border-box;
  background: rgba(6, 5, 16, 0.88);
  backdrop-filter: blur(10px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.app-lock-card {
  width: min(430px, 100%);
  display: grid;
  gap: 10px;
  border: 1px solid rgba(111, 77, 255, 0.35);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(20, 14, 44, 0.95), rgba(11, 8, 28, 0.95));
  padding: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.account-lock-modal-card {
  width: min(460px, 100%);
  max-height: min(92dvh, 760px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.account-lock-modal-close {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 0;
  color: rgba(196, 168, 255, 0.82);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 2px 0;
}

.account-lock-modal-close:hover,
.account-lock-modal-close:focus-visible {
  color: #e2d5ff;
}

.account-referrals-modal-card {
  width: min(520px, 100%);
  max-height: min(92dvh, 760px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.account-referrals-hero {
  display: grid;
  gap: 6px;
  padding: 2px 2px 4px;
}

.account-referrals-copy {
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(220, 255, 251, 0.9);
}

.account-referrals-copy-muted {
  color: rgba(170, 232, 226, 0.82);
}

.account-referrals-inline {
  display: grid;
  gap: 10px;
}

.account-referrals-inline-actions {
  display: flex;
  gap: 8px;
}

.account-referrals-inline-btn {
  min-width: 88px;
  justify-content: center;
}

.account-referrals-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.account-referrals-stat-card {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(63, 196, 184, 0.34);
  border-radius: 16px;
  background:
    radial-gradient(circle at top left, rgba(72, 219, 204, 0.18), rgba(72, 219, 204, 0) 50%),
    rgba(7, 27, 33, 0.74);
  padding: 14px;
}

.account-referrals-stat-card-combined {
  gap: 10px;
}

.account-referrals-combined-values {
  display: grid;
  gap: 8px;
}

.account-referrals-combined-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.account-referrals-combined-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(170, 232, 226, 0.82);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.account-referrals-stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(170, 232, 226, 0.72);
}

.account-referrals-stat-value {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.06rem;
  color: #ecfffb;
}

.account-referrals-stat-value-ready {
  color: rgba(143, 255, 193, 0.98);
  text-shadow: 0 0 16px rgba(63, 208, 133, 0.35);
}

.referral-withdraw-btn-ready {
  border-color: rgba(125, 255, 194, 0.72);
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0) 46%),
    linear-gradient(145deg, #33d493, #1dbb7f 52%, #129364);
  color: #07281d;
  box-shadow:
    0 10px 22px rgba(11, 120, 82, 0.42),
    0 0 0 4px rgba(31, 179, 124, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.referral-withdraw-btn-ready:disabled {
  opacity: 0.65;
}

.account-referrals-recent-list {
  display: grid;
  gap: 10px;
}

.account-referrals-empty {
  border: 1px dashed rgba(74, 205, 192, 0.34);
  border-radius: 14px;
  padding: 12px;
  color: rgba(170, 232, 226, 0.8);
  text-align: center;
}

.account-referrals-recent-item {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(63, 196, 184, 0.28);
  border-radius: 15px;
  background: rgba(8, 23, 28, 0.74);
  padding: 12px;
}

.account-referrals-recent-head,
.account-referrals-recent-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.account-referrals-recent-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #effffc;
}

.account-referrals-recent-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.account-referrals-recent-status.is-pending {
  background: rgba(255, 185, 70, 0.16);
  color: rgba(255, 221, 160, 0.96);
}

.account-referrals-recent-status.is-active {
  background: rgba(74, 205, 192, 0.16);
  color: rgba(198, 255, 249, 0.96);
}

.account-referrals-recent-status.is-withdraw {
  background: rgba(108, 142, 255, 0.18);
  color: rgba(221, 230, 255, 0.96);
}

.account-referrals-recent-meta,
.account-referrals-recent-dates {
  font-size: 0.78rem;
  color: rgba(170, 232, 226, 0.78);
}

.account-referrals-recent-dates {
  display: grid;
  gap: 4px;
}

@media (max-width: 520px) {
  .account-referrals-stats-grid {
    grid-template-columns: 1fr;
  }

  .account-referrals-inline-actions,
  .account-referrals-recent-head,
  .account-referrals-recent-meta {
    flex-direction: column;
    align-items: stretch;
  }

  .account-referrals-inline-btn {
    width: 100%;
  }
}

.app-lock-kicker {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(196, 168, 255, 0.72);
}

.app-lock-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
  line-height: 1.2;
}

.app-lock-hint {
  font-size: 0.84rem;
  color: rgba(186, 170, 230, 0.86);
}

.app-lock-pin-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.app-lock-pin-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid rgba(196, 168, 255, 0.5);
  background: transparent;
}

.app-lock-pin-dot.filled {
  background: #d8c3ff;
  border-color: #d8c3ff;
}

.app-lock-pinpad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.app-lock-key {
  border: 1px solid rgba(111, 77, 255, 0.38);
  border-radius: 14px;
  background: rgba(111, 77, 255, 0.14);
  color: #efe7ff;
  min-height: 46px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.app-lock-key:hover,
.app-lock-key:focus-visible {
  background: rgba(111, 77, 255, 0.24);
  border-color: rgba(171, 120, 255, 0.72);
}

.app-lock-key:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.app-lock-key-action {
  font-size: 0.82rem;
  font-weight: 600;
}

.app-lock-error {
  border: 1px solid rgba(230, 90, 80, 0.45);
  background: rgba(230, 90, 80, 0.1);
  color: rgba(255, 178, 172, 0.95);
  border-radius: 10px;
  padding: 7px 9px;
  font-size: 0.78rem;
}

.email-preview-popup {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.email-preview-popup.hidden {
  display: none;
}

.email-preview-popup.is-open {
  opacity: 1;
  pointer-events: auto;
}

.email-preview-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 280ms ease;
}

.email-preview-modal {
  position: absolute;
  inset: max(8px, env(safe-area-inset-top)) 0 0;
  background: var(--bg-1);
  border-top: 1px solid rgba(85, 117, 203, 0.3);
  border-radius: 24px 24px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 320ms cubic-bezier(0.2, 0.75, 0.24, 1);
}

.email-preview-popup.is-open .email-preview-overlay {
  opacity: 1;
}

.email-preview-popup.is-open .email-preview-modal {
  transform: translateY(0);
}

.email-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: linear-gradient(120deg, var(--accent-d), #8f64ff 52%, #ae6fff);
}

.close-preview-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
}

.template-preview-panel {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
  color: #d4deff;
}

.template-preview-loading,
.template-preview-error {
  border: 1px solid rgba(92, 117, 210, 0.28);
  border-radius: 16px;
  background: rgba(11, 15, 36, 0.72);
  padding: 14px;
  color: rgba(221, 232, 255, 0.92);
  font-size: 0.9rem;
}

.template-preview-error {
  border-color: rgba(230, 90, 80, 0.38);
  color: rgba(255, 198, 194, 0.96);
}

.template-preview-meta {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid rgba(92, 117, 210, 0.28);
  border-radius: 16px;
  background: rgba(11, 15, 36, 0.72);
}

.template-preview-meta-row {
  display: grid;
  gap: 3px;
}

.template-preview-meta-row span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(170, 188, 235, 0.68);
}

.template-preview-meta-row strong {
  font-size: 0.88rem;
  color: #eef4ff;
  font-weight: 600;
  word-break: break-word;
}

.template-preview-shell {
  border-radius: 18px;
  border: 1px solid rgba(92, 117, 210, 0.24);
  background: linear-gradient(180deg, rgba(224, 231, 245, 0.95), rgba(208, 218, 237, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  padding: 16px 10px 20px;
  overflow: hidden;
}

.template-preview-stage {
  width: 100%;
  position: relative;
  overflow: visible;
}

.template-preview-frame {
  display: block;
  margin: 0;
  border: 0;
  background: #ffffff;
  box-shadow: 0 20px 48px rgba(22, 30, 52, 0.2);
  transform-origin: top left;
}

.template-preview-json {
  margin: 0;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(92, 117, 210, 0.28);
  background: rgba(11, 15, 36, 0.72);
  color: #eef4ff;
  font-size: 0.82rem;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.app-view[data-view="templates"] {
  grid-template-rows: auto auto 1fr;
  overflow: visible;
  inset: 0 0 var(--dock-clearance);
}

.app-view[data-view="templates"] > :not(.header-card):not(.template-upload-modal) {
  margin-left: 12px;
  margin-right: 12px;
}

.app-view[data-view="templates"] .header-card {
  position: relative;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 6px 14px 10px;
  box-shadow: none;
  min-height: 102px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-view[data-view="templates"] .header-card::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  bottom: -1px;
  height: 1px;
  background: rgba(92, 117, 210, 0.3);
}

.templates-header-count {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: linear-gradient(135deg, rgba(143, 100, 255, 0.2), rgba(111, 77, 255, 0.12));
  border: 1px solid rgba(171, 120, 255, 0.34);
  border-radius: 9px;
  padding: 5px 8px;
  box-shadow:
    0 0 0 1px rgba(143, 100, 255, 0.08),
    0 2px 8px rgba(111, 77, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  white-space: nowrap;
  width: fit-content;
  max-width: 95px;
  margin-left: auto;
}

.templates-header-count-icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: rgba(143, 100, 255, 0.28);
  border: 1px solid rgba(171, 120, 255, 0.34);
  display: grid;
  place-items: center;
  color: #c9a8ff;
  flex-shrink: 0;
}

.templates-header-count-icon svg {
  width: 12px;
  height: 12px;
}

.templates-header-count-num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  color: #e8d5ff;
}

.templates-header-count-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(196, 168, 255, 0.72);
  letter-spacing: 0.01em;
}

.app-view[data-view="templates"] .header-card.templates-header .send-back.hidden {
  display: none !important;
}

.app-view[data-view="templates"] .header-card.templates-header .send-back:not(.hidden) ~ .templates-header-count {
  display: none;
}

.templates-menu {
  display: grid;
  gap: 10px;
  align-content: start;
}

.templates-subpage {
  display: grid;
  gap: 10px;
  align-content: start;
}

.templates-subpage-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(53, 72, 128, 0.42);
  margin-bottom: 2px;
}

.templates-subpage-head .send-head-copy {
  flex: 1;
  min-width: 0;
}

.templates-upload-cta {
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  min-width: 0;
  border: 1px solid rgba(247, 237, 255, 0.62);
  border-radius: 22px;
  min-height: 56px;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 42%),
    linear-gradient(145deg, #be84ff, #8f64ff 52%, #6f4dff 100%);
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  color: #eff6ff;
  text-align: left;
  padding: 0 16px;
  box-shadow:
    0 0 0 5px rgba(172, 120, 255, 0.14),
    0 12px 22px rgba(84, 56, 189, 0.56),
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -8px 16px rgba(37, 24, 99, 0.3);
}

.templates-upload-cta.is-depleted,
.templates-upload-cta:disabled {
  border-color: rgba(152, 166, 201, 0.48);
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 42%),
    linear-gradient(145deg, #515b74, #414a61 52%, #363f53 100%);
  box-shadow:
    0 0 0 4px rgba(106, 118, 150, 0.16),
    0 10px 18px rgba(23, 30, 46, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -8px 16px rgba(19, 25, 39, 0.34);
  cursor: not-allowed;
}

.templates-upload-cta.is-depleted .home-send-copy strong,
.templates-upload-cta.is-depleted .home-send-copy span,
.templates-upload-cta.is-depleted .home-send-arrow,
.templates-upload-cta.is-depleted .templates-upload-icon,
.templates-upload-cta:disabled .home-send-copy strong,
.templates-upload-cta:disabled .home-send-copy span,
.templates-upload-cta:disabled .home-send-arrow,
.templates-upload-cta:disabled .templates-upload-icon {
  color: rgba(228, 236, 255, 0.82);
}

.templates-upload-cta::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 10px;
  right: 10px;
  width: auto;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0));
  opacity: 0.52;
  pointer-events: none;
}

.templates-upload-icon {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(247, 237, 255, 0.48);
}

.templates-upload-cta .home-send-copy strong {
  font-size: 1rem;
}

.templates-upload-cta .home-send-copy span {
  font-size: 0.8rem;
}

.templates-content {
  min-height: 0;
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 10px;
  padding-bottom: 8px;
}

.templates-group {
  border: 1px solid rgba(66, 92, 170, 0.45);
  border-radius: 16px;
  background: rgba(10, 17, 44, 0.7);
  padding: 12px;
  display: grid;
  gap: 10px;
}

.templates-group-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
}

.templates-group-copy {
  margin-top: 4px;
  color: rgba(166, 186, 236, 0.9);
  font-size: 0.82rem;
}

.templates-list {
  display: grid;
  gap: 8px;
}

.template-library-row {
  border: 1px solid rgba(43, 66, 127, 0.52);
  border-radius: 18px;
  background: transparent;
  color: #e9f0ff;
  text-align: left;
  padding: 14px 12px;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 12px;
  align-items: center;
}

.template-row-icon {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: #0a1f55;
  border: 1px solid rgba(57, 89, 171, 0.55);
  color: rgba(143, 178, 255, 0.9);
  font-size: 30px;
  line-height: 1;
  flex-shrink: 0;
}

.template-library-row-copy {
  min-width: 0;
}

.template-library-row-title {
  font-size: 0.95rem;
  font-weight: 700;
}

.template-library-row-meta {
  margin-top: 2px;
  color: rgba(166, 186, 236, 0.9);
  font-size: 0.8rem;
}

.template-library-row-arrow {
  font-size: 1.35rem;
  color: rgba(143, 178, 255, 0.78);
}

.template-row-icon[data-brand] {
  background-repeat: no-repeat;
  background-position: center;
  background-size: 72% auto;
}

.template-row-icon[data-brand="binance"] {
  background-color: #0b0b0e;
  border-color: #f3d15c;
  background-image: url("assets/binance.webp");
}

.template-row-icon[data-brand="coinbase"] {
  background-color: #0052ff;
  border-color: #6ea4ff;
  background-image: url("assets/coinbase.png");
}

.template-row-icon[data-brand="kraken"] {
  background-color: #e6e8ee;
  border-color: #8b5cf6;
  background-image: url("assets/kraken.png");
  background-size: 64% auto;
}

.template-library-empty {
  border: 1px dashed rgba(90, 117, 191, 0.45);
  border-radius: 14px;
  background: rgba(8, 16, 43, 0.72);
  color: rgba(166, 186, 236, 0.88);
  font-size: 0.82rem;
  padding: 12px;
}

.template-upload-modal {
  position: fixed;
  inset: 0;
  margin: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
}

.template-upload-modal.hidden {
  display: none;
}

.template-upload-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 17, 0.7);
}

.template-upload-dialog {
  position: relative;
  width: min(560px, calc(100% - 22px));
  border: 1px solid rgba(96, 119, 202, 0.45);
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(13, 18, 45, 0.98), rgba(10, 16, 36, 0.98));
  box-shadow: 0 26px 60px rgba(2, 4, 12, 0.72);
  display: grid;
  gap: 10px;
  padding: 14px;
}

.template-upload-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 8px;
}

.template-upload-kicker {
  color: rgba(197, 163, 255, 0.9);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.template-upload-close {
  border: 0;
  background: transparent;
  color: #d4deff;
  font-size: 1.3rem;
}

.template-upload-step-indicator {
  color: rgba(166, 186, 236, 0.9);
  font-size: 0.82rem;
}

.template-upload-step {
  display: grid;
  gap: 10px;
}

.template-upload-step-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
}

.template-upload-file {
  border: 1px dashed rgba(99, 126, 208, 0.62);
  border-radius: 14px;
  background: rgba(16, 26, 66, 0.75);
  padding: 12px;
  display: grid;
  gap: 8px;
}

.template-upload-file input {
  color: #d4deff;
}

.template-upload-file-copy,
.template-upload-meta {
  color: rgba(166, 186, 236, 0.9);
  font-size: 0.82rem;
}

.template-upload-description {
  min-height: 96px;
  padding-top: 12px;
  resize: vertical;
}

.template-upload-review {
  border: 1px solid rgba(66, 92, 170, 0.45);
  border-radius: 14px;
  background: rgba(10, 18, 48, 0.8);
  padding: 10px;
  display: grid;
  gap: 8px;
}

.template-upload-review p {
  color: rgba(227, 236, 255, 0.95);
  font-size: 0.84rem;
}

.template-upload-feedback {
  color: #ffc06a;
  font-size: 0.82rem;
}

.template-upload-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.template-upload-btn {
  border: 1px solid rgba(247, 237, 255, 0.62);
  border-radius: 12px;
  min-height: 38px;
  padding: 0 12px;
  font-weight: 700;
  color: #f6f1ff;
  background: linear-gradient(145deg, #be84ff, #8f64ff 52%, #6f4dff 100%);
}

.template-upload-btn.ghost {
  background: rgba(11, 19, 52, 0.72);
  border-color: rgba(102, 128, 205, 0.52);
  color: #d4deff;
}

@keyframes progressPulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes drift {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-14px) translateX(10px); }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 380px) {
  .template-grid {
    gap: 7px;
  }
}

@media (min-width: 640px) {
  .screen {
    padding: 26px;
  }

  .feature-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ═══════════════════════════════════════
   SHOP VIEW
═══════════════════════════════════════ */

.app-view[data-view="shop"] .header-card {
  position: relative;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 6px 14px 10px;
  box-shadow: none;
}

.app-view[data-view="shop"] .header-card::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  bottom: -1px;
  height: 1px;
  background: rgba(92, 117, 210, 0.3);
}

.app-view[data-view="shop"] {
  inset: 0 0 var(--dock-clearance);
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 12px;
}

.app-view[data-view="shop"] > :not(.header-card) {
  margin-left: 12px;
  margin-right: 12px;
}

/* ── Shop success modal ── */
.shop-success-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.shop-success-modal.hidden {
  display: none;
}

.shop-success-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.shop-success-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 20, 0.68);
}

.shop-success-card {
  position: relative;
  width: min(520px, calc(100% - 24px));
  border-radius: 24px;
  border: 1px solid rgba(126, 255, 204, 0.44);
  background:
    radial-gradient(circle at 16% 10%, rgba(126, 255, 204, 0.2), rgba(126, 255, 204, 0) 44%),
    linear-gradient(155deg, rgba(7, 34, 43, 0.98), rgba(5, 17, 35, 0.98));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  padding: 22px 18px 18px;
  overflow: hidden;
  transform: translateY(18px) scale(0.96);
  transition: transform 260ms cubic-bezier(0.2, 0.75, 0.24, 1);
}

.shop-success-modal.is-open .shop-success-card {
  transform: translateY(0) scale(1);
}

.shop-success-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  color: rgba(214, 249, 239, 0.9);
  font-size: 1.4rem;
  line-height: 1;
}

.shop-success-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(111, 247, 192, 0.48);
  background: rgba(16, 93, 70, 0.28);
  color: #8dffe1;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 6px 10px;
}

.shop-success-title {
  margin-top: 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.4rem, 5vw, 1.85rem);
  line-height: 1.1;
}

.shop-success-copy {
  margin-top: 8px;
  color: rgba(212, 238, 255, 0.92);
  font-size: 0.95rem;
}

.shop-success-meta {
  margin-top: 10px;
  color: rgba(141, 255, 225, 0.95);
  font-weight: 600;
  font-size: 0.86rem;
}

.shop-success-done {
  margin-top: 16px;
  width: 100%;
  border: 1px solid rgba(125, 255, 194, 0.72);
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0) 46%),
    linear-gradient(145deg, #33d493, #1dbb7f 52%, #129364);
  color: #07281d;
  box-shadow:
    0 10px 22px rgba(11, 120, 82, 0.42),
    0 0 0 4px rgba(31, 179, 124, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.shop-success-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.shop-success-particle {
  position: absolute;
  top: -24px;
  left: var(--x);
  width: 8px;
  height: 14px;
  border-radius: 3px;
  background: hsl(var(--hue), 90%, 62%);
  opacity: 0;
  transform: translateX(0) rotate(0deg);
  animation: shopConfettiFall 1.55s ease-in forwards;
  animation-delay: var(--delay);
}

.shop-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 1190;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.shop-confirm-modal.hidden {
  display: none;
}

.shop-confirm-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.shop-confirm-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 20, 0.72);
}

.shop-confirm-card {
  position: relative;
  width: min(520px, calc(100% - 24px));
  border-radius: 24px;
  border: 1px solid rgba(171, 120, 255, 0.42);
  background:
    radial-gradient(circle at 14% 10%, rgba(190, 132, 255, 0.18), rgba(190, 132, 255, 0) 44%),
    linear-gradient(155deg, rgba(17, 13, 42, 0.98), rgba(8, 11, 29, 0.98));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  padding: 22px 18px 18px;
  overflow: hidden;
  transform: translateY(18px) scale(0.96);
  transition: transform 260ms cubic-bezier(0.2, 0.75, 0.24, 1);
}

.shop-confirm-modal.is-open .shop-confirm-card {
  transform: translateY(0) scale(1);
}

.shop-confirm-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  color: rgba(230, 223, 255, 0.92);
  font-size: 1.4rem;
  line-height: 1;
}

.shop-confirm-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(171, 120, 255, 0.46);
  background: rgba(101, 70, 175, 0.26);
  color: #d7c2ff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 6px 10px;
}

.shop-confirm-title {
  margin-top: 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.35rem, 5vw, 1.75rem);
  line-height: 1.1;
}

.shop-confirm-copy {
  margin-top: 8px;
  color: rgba(212, 238, 255, 0.92);
  font-size: 0.95rem;
  line-height: 1.5;
}

.shop-confirm-meta {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(94, 121, 205, 0.28);
  background: rgba(8, 13, 33, 0.74);
}

.shop-confirm-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.shop-confirm-meta-label {
  color: rgba(174, 196, 245, 0.72);
  font-size: 0.8rem;
}

.shop-confirm-meta-value {
  color: #f3f7ff;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: right;
  overflow-wrap: anywhere;
}

.shop-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.shop-confirm-approve,
.shop-confirm-cancel {
  width: 100%;
}

@keyframes shopConfettiFall {
  0% {
    opacity: 0;
    transform: translateX(0) translateY(-20px) rotate(0deg);
  }
  12% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(var(--drift)) translateY(300px) rotate(520deg);
  }
}

/* ── Shop back row ── */
.shop-back-row {
  display: flex;
  align-items: center;
}

.shop-back-inline {
  display: flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  color: rgba(196, 168, 255, 0.82);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 2px 0;
}

.shop-back-inline:hover {
  color: #e2d5ff;
}

/* ── Step panels ── */
.shop-step-panel {
  display: grid;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

#shop-step-deposit {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  padding-bottom: calc(var(--dock-height) + 12px);
  justify-content: flex-start;
  text-align: left;
}

#shop-step-deposit > * {
  flex-shrink: 0;
}

#shop-step-deposit .shop-step-title,
#shop-step-deposit .shop-step-copy {
  max-width: none;
  text-align: left;
}

.shop-step-kicker {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(183,140,255,0.85);
}

.shop-step-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.25rem, 4.5vw, 1.65rem);
  line-height: 1.2;
  margin-top: -6px;
  width: 100%;
  box-sizing: border-box;
}

.shop-step-copy {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-top: -8px;
  width: 100%;
  box-sizing: border-box;
}

.shop-step-copy strong {
  color: #e2d5ff;
  display: inline;
}

.shop-deposit-fee-note {
  display: block;
  margin-top: 2px;
  margin-left: 0;
  font-size: 0.88em;
  line-height: 1.3;
  color: #e2d5ff;
}

/* ── Preset amount grid ── */
.shop-preset-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  min-width: 0;
}

.shop-preset-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 14px 8px 14px;
  border-radius: 18px;
  border: 1.5px solid rgba(100, 83, 175, 0.4);
  background: rgba(15, 10, 38, 0.7);
  color: var(--ink);
  transition: border-color 220ms, background 220ms, box-shadow 220ms;
  overflow: hidden;
  min-width: 0;
}

.shop-preset-btn:hover,
.shop-preset-btn:focus-visible {
  border-color: rgba(171,120,255,0.55);
  background: rgba(30,18,68,0.8);
}

.shop-preset-btn.selected {
  border-color: #be84ff;
  background: linear-gradient(145deg, rgba(47,27,102,0.9), rgba(29,16,68,0.96));
  box-shadow: 0 0 0 3px rgba(143,100,255,0.18), 0 6px 18px rgba(111,77,255,0.3);
}

.shop-preset-amount {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}

.shop-preset-popular {
  border-color: rgba(255,190,60,0.55) !important;
  background: linear-gradient(145deg, rgba(52,36,8,0.88), rgba(38,26,6,0.94)) !important;
  padding-top: 34px;
}

.shop-preset-popular.selected {
  border-color: #be84ff !important;
  background: linear-gradient(145deg, rgba(47,27,102,0.9), rgba(29,16,68,0.96)) !important;
  box-shadow: 0 0 0 3px rgba(143,100,255,0.18), 0 6px 18px rgba(111,77,255,0.3);
}

.shop-preset-popular-tag {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #ffc840, #ff9a20);
  color: #2a1200;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
  z-index: 1;
}

.shop-preset-popular.selected .shop-preset-popular-tag {
  background: linear-gradient(90deg, #8f64ff, #6f4dff);
  color: #f2ebff;
}

/* ── Custom amount ── */
.shop-custom-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.shop-custom-prefix {
  position: absolute;
  left: 13px;
  color: rgba(196,168,255,0.75);
  font-size: 1rem;
  font-weight: 700;
  pointer-events: none;
}

.shop-custom-input {
  padding-left: 28px !important;
}

/* ── Selected badge ── */
.shop-amount-selected {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(143,100,255,0.18), rgba(111,77,255,0.1));
  border: 1px solid rgba(171,120,255,0.38);
  border-radius: 14px;
  padding: 8px 14px;
}

.shop-amount-selected-label {
  font-size: 0.82rem;
  color: rgba(196,168,255,0.75);
}

.shop-amount-selected-value {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #e2d5ff;
}

/* ── Next / CTA buttons ── */
.shop-next-btn {
  margin-top: 2px;
}

.shop-next-btn:disabled {
  opacity: 0.38;
  pointer-events: none;
}

/* ── Token list ── */
.shop-token-list {
  display: grid;
  gap: 6px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.shop-token-copy {
  min-width: 0;
}

.shop-token-btn {
  display: grid;
  grid-template-columns: 40px 1fr 24px;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 14px;
  border: 1.5px solid rgba(100,83,175,0.38);
  background: rgba(12,8,30,0.72);
  color: var(--ink);
  text-align: left;
  transition: border-color 220ms, background 220ms, box-shadow 220ms;
  min-width: 0;
}

.shop-token-btn:hover,
.shop-token-btn:focus-visible {
  border-color: rgba(171,120,255,0.5);
  background: rgba(26,16,58,0.82);
}

.shop-token-btn.selected {
  border-color: #be84ff;
  background: linear-gradient(145deg, rgba(47,27,102,0.92), rgba(29,16,68,0.96));
  box-shadow: 0 0 0 2px rgba(143,100,255,0.14), 0 4px 12px rgba(111,77,255,0.24);
}

.shop-token-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 1.08rem;
  font-weight: 800;
  flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,0.14);
}

.shop-token-btc  { background: #f7931a; color: #fff; }
.shop-token-eth  { background: #627eea; color: #fff; }
.shop-token-usdt { background: #26a17b; color: #fff; }
.shop-token-usdc { background: #2775ca; color: #fff; }
.shop-token-ltc  { background: #bfbbbb; color: #1c1c1c; }
.shop-token-xmr  { background: #ff6600; color: #fff; }

.shop-token-name {
  font-size: 0.85rem;
  font-weight: 700;
}

.shop-token-meta {
  margin-top: 1px;
  font-size: 0.7rem;
  color: rgba(166,186,236,0.85);
  overflow-wrap: anywhere;
}

.shop-token-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid rgba(143,111,255,0.28);
  display: grid;
  place-items: center;
  color: transparent;
  transition: background 220ms, border-color 220ms, color 220ms;
  flex-shrink: 0;
}

.shop-token-btn.selected .shop-token-check {
  background: linear-gradient(135deg, #b478ff, #6f4dff);
  border-color: #be84ff;
  color: #fff;
}

#shop-step-token {
  padding-bottom: 26px;
}

/* ── QR card ── */
.shop-qr-box {
  width: 190px;
  height: 190px;
  min-width: 190px;
  min-height: 190px;
  max-width: 190px;
  max-height: 190px;
  display: block;
  place-items: center;
  align-self: center;
  justify-self: center;
  margin: 4px auto 6px;
  position: relative;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.shop-qr-image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0;
  box-sizing: border-box;
  border-radius: 0;
  background: #ffffff;
  border: 0;
  position: relative;
  z-index: 2;
  box-shadow: none;
}

.shop-qr-corner {
  display: none;
}

.shop-qr-empty {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.88);
  background: linear-gradient(145deg, rgba(18, 16, 44, 0.92), rgba(42, 30, 85, 0.92));
}

/* ── Address card ── */
.shop-address-card {
  border: 1.5px solid rgba(100,83,175,0.42);
  border-radius: 20px;
  background: rgba(12,8,30,0.8);
  padding: 14px 16px;
  display: grid;
  gap: 10px;
  min-width: 0;
}

.shop-address-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.shop-address-network-badge {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(90deg, rgba(143,100,255,0.28), rgba(111,77,255,0.18));
  border: 1px solid rgba(171,120,255,0.42);
  border-radius: 8px;
  padding: 2px 8px;
  color: #cbb2ff;
}

.shop-address-title {
  font-size: 0.82rem;
  color: rgba(196,168,255,0.72);
  font-weight: 600;
}

.shop-deposit-address {
  font-family: monospace;
  font-size: 0.74rem;
  color: #c8d8ff;
  word-break: break-all;
  line-height: 1.35;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
  overflow-wrap: break-word;
}

.shop-copy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(171,120,255,0.42);
  border-radius: 12px;
  background: rgba(143,100,255,0.14);
  color: #cbb2ff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 14px;
  transition: background 200ms, border-color 200ms;
}

.shop-copy-btn:hover {
  background: rgba(143,100,255,0.24);
  border-color: rgba(191,140,255,0.6);
}

.shop-copy-btn.copied {
  background: rgba(72,190,130,0.18);
  border-color: rgba(72,190,130,0.5);
  color: #7cdca8;
}

/* ── Deposit meta table ── */
.shop-deposit-meta {
  position: relative;
  z-index: 1;
  display: block;
  flex: 0 0 auto;
  clear: both;
  border: 1px solid rgba(100,83,175,0.35);
  border-radius: 16px;
  background: rgba(10,8,26,0.75);
  overflow: hidden;
  min-height: fit-content;
  margin-top: 4px;
  margin-bottom: 8px;
  min-width: 0;
  width: min(100%, 360px);
  justify-self: center;
}

.shop-deposit-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(100,83,175,0.2);
  min-width: 0;
}

.shop-deposit-meta-row:last-child {
  border-bottom: none;
}

.shop-deposit-meta-key {
  font-size: 0.82rem;
  color: rgba(166,186,236,0.72);
  flex: 0 0 auto;
}

.shop-deposit-meta-val {
  font-size: 0.9rem;
  font-weight: 700;
  color: #e2d5ff;
  min-width: 0;
  flex: 1 1 auto;
  max-width: 70%;
  text-align: right;
  overflow-wrap: anywhere;
}

.shop-meta-address-val {
  font-family: monospace;
  font-size: 0.72rem;
  line-height: 1.3;
  max-width: 70%;
  cursor: pointer;
  user-select: all;
}

.shop-meta-address-val.is-pending {
  color: rgba(166,186,236,0.72);
  cursor: default;
  user-select: text;
}

.shop-meta-address-val.copied {
  color: #7ff0b2;
}

#shop-deposit-status {
  flex: 0 0 auto;
  max-width: none;
  white-space: nowrap;
}

.shop-status-pending {
  color: #f0c040;
  font-size: 0.82rem;
}

.shop-status-processing {
  color: #8fd4ff;
  font-size: 0.82rem;
}

.shop-status-paid {
  color: #7ff0b2;
  font-size: 0.82rem;
}

.shop-status-expired {
  color: #ff9f84;
  font-size: 0.82rem;
}

/* ── Done button ── */
.shop-done-btn {
  margin-top: 4px;
}

/* ════════════════════════════════════════
   SHOP HOME — Plans + Pay As You Go
════════════════════════════════════════ */

.shop-panel-home {
  display: grid;
  gap: 16px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.shop-home-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border-radius: 14px;
  border: 1px solid rgba(100,83,175,0.35);
  background: rgba(12,8,30,0.62);
}

.shop-home-toggle-btn {
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(196,168,255,0.62);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 8px 10px;
  min-width: 0;
  box-sizing: border-box;
  transition: background 200ms, color 200ms, box-shadow 200ms;
}

.shop-home-toggle-btn.active {
  background: linear-gradient(135deg, rgba(180,120,255,0.25), rgba(111,77,255,0.2));
  color: #e9ddff;
  box-shadow: 0 0 0 1px rgba(190,132,255,0.35) inset;
}

.shop-home-toggle-btn:hover,
.shop-home-toggle-btn:focus-visible {
  color: #efe6ff;
}

.shop-home-section {
  display: grid;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

#shop-membership-panel {
  padding-bottom: 22px;
}

/* ── Section headings ── */
.shop-section-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.1rem, 4vw, 1.4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-top: -4px;
}

.shop-section-copy {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-top: -8px;
}

.shop-section-copy strong {
  color: #e2d5ff;
}

/* ── Rank cards ── */
.shop-rank-grid {
  display: grid;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.shop-rank-card {
  position: relative;
  border: 1.5px solid rgba(100,83,175,0.4);
  border-radius: 20px;
  background: rgba(12,8,30,0.72);
  padding: 12px 13px;
  display: grid;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
  transition: box-shadow 220ms, border-color 220ms, outline-color 220ms;
}

.shop-rank-card.shop-rank-sale {
  border-color: rgba(191,140,255,0.5);
  background: linear-gradient(145deg, rgba(42,22,92,0.82), rgba(28,14,62,0.9));
  box-shadow: 0 0 0 1px rgba(202,148,255,0.2) inset, 0 0 18px rgba(146,92,255,0.34), 0 8px 22px rgba(53,27,112,0.38);
}

.shop-rank-card.shop-rank-best {
  border-color: rgba(255,190,80,0.55);
  background: linear-gradient(145deg, rgba(24,24,24,0.94), rgba(6,6,6,0.98));
  box-shadow: 0 0 0 1px rgba(255,217,130,0.2) inset, 0 0 20px rgba(255,193,76,0.4), 0 10px 28px rgba(33,20,4,0.42);
}

/* ── Sale badge (top-right corner sticker) ── */
.shop-rank-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: linear-gradient(90deg, #b478ff, #6f4dff);
  color: #f5f0ff;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 13px;
  border-radius: 0 18px 0 14px;
  max-width: calc(100% - 10px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-rank-badge.shop-rank-badge-best {
  background: linear-gradient(90deg, #ffd060, #ff9a20);
  color: #2a1200;
}

/* ── Period label ── */
.shop-rank-period {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(196,168,255,0.65);
}

.shop-rank-card.shop-rank-best .shop-rank-period {
  color: #ffe680;
}

/* ── Price row ── */
.shop-rank-price-wrap {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 6px;
}

.shop-rank-original {
  font-size: 0.76rem;
  color: rgba(196,168,255,0.38);
  text-decoration: line-through;
}

.shop-rank-price {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.28rem;
  font-weight: 800;
  color: #e8dcff;
  line-height: 1;
}

.shop-rank-card.shop-rank-best .shop-rank-price {
  color: #ffe680;
}

.shop-rank-per {
  font-size: 0.74rem;
  color: rgba(196,168,255,0.55);
}

/* ── Perks list ── */
.shop-rank-perks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 3px;
}

.shop-rank-perks li {
  font-size: 0.76rem;
  color: rgba(196,168,255,0.82);
  display: flex;
  align-items: center;
  gap: 6px;
}

.shop-rank-perks li::before {
  content: "✓";
  font-size: 0.66rem;
  font-weight: 900;
  color: #a06cff;
  flex-shrink: 0;
}

.shop-rank-btn {
  padding: 9px 14px;
  font-size: 0.82rem;
}

.shop-rank-card.shop-rank-best .shop-rank-perks li::before {
  color: #ffc840;
}

.shop-rank-card.shop-rank-best .shop-rank-perks li {
  color: #ffc840;
}

.shop-rank-btn-weekly {
  border: 1.5px solid rgba(196,138,255,0.6);
  outline: none;
  background: linear-gradient(120deg, #5f38ba, #8a55ff 55%, #b06bff);
  box-shadow: 0 0 0 1px rgba(225,190,255,0.2) inset;
}

.shop-rank-btn-weekly:hover,
.shop-rank-btn-weekly:focus-visible {
  border-color: rgba(220,174,255,0.92);
  box-shadow: 0 0 0 1px rgba(234,204,255,0.3) inset;
}

.shop-rank-btn-monthly {
  border: 1.5px solid rgba(255,211,110,0.66);
  outline: none;
  background: linear-gradient(135deg, #262626, #0a0a0a 58%, #1c1c1c);
  color: #ffe680;
  box-shadow: 0 0 0 1px rgba(255,225,150,0.2) inset;
}

.shop-rank-btn-monthly:hover,
.shop-rank-btn-monthly:focus-visible {
  border-color: rgba(255,226,150,0.92);
  color: #fff1b0;
  box-shadow: 0 0 0 1px rgba(255,234,170,0.3) inset;
}

/* ── Or divider ── */
.shop-or-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(196,168,255,0.35);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.shop-or-divider::before,
.shop-or-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(100,83,175,0.28);
}

/* ── Pay-as-you-go wrapper ── */
.shop-payg-wrap {
  display: grid;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* ── Token count display ── */
.shop-payg-display {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.shop-payg-qty {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  color: #e8dcff;
  line-height: 1;
}

.shop-payg-unit {
  font-size: 0.85rem;
  color: rgba(196,168,255,0.5);
  margin-right: 6px;
}

.shop-payg-total {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #b478ff;
  line-height: 1;
}

.shop-payg-rate {
  width: 100%;
  font-size: 0.78rem;
  color: rgba(196,168,255,0.42);
  margin-top: -2px;
}

/* ── Range slider ── */
.shop-slider-wrap {
  display: grid;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.shop-token-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(100,83,175,0.3);
  outline: none;
  cursor: pointer;
}

.shop-token-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #b478ff, #6f4dff);
  cursor: pointer;
  border: 2px solid rgba(255,255,255,0.18);
  box-shadow: 0 0 0 4px rgba(143,100,255,0.2), 0 3px 8px rgba(111,77,255,0.4);
}

.shop-token-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #b478ff, #6f4dff);
  cursor: pointer;
  border: 2px solid rgba(255,255,255,0.18);
  box-shadow: 0 0 0 4px rgba(143,100,255,0.2), 0 3px 8px rgba(111,77,255,0.4);
}

.shop-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: rgba(196,168,255,0.35);
}

  /* ── Franchise / turquoise theme ─────────────────────────────────────────── */
  body[data-theme="franchise"] {
    --bg-0: #030303;
    --bg-1: #0a0a0a;
    --bg-2: #151515;
    --ink: #f1f4f8;
    --muted: #b8c4cf;
    --line: rgba(255, 255, 255, 0.11);
    --card: rgba(16, 16, 16, 0.78);
    --card-strong: rgba(24, 24, 24, 0.94);
    --accent-a: #34d399;
    --accent-b: #22c55e;
    --accent-c: #86efac;
    --accent-d: #16a34a;
    --accent-e: #bbf7d0;
  }

  body[data-theme="franchise"] {
    background:
      radial-gradient(80% 100% at 12% 5%, rgba(52, 211, 153, 0.11), transparent 60%),
      radial-gradient(70% 90% at 90% 8%, rgba(22, 163, 74, 0.13), transparent 70%),
      radial-gradient(90% 90% at 50% 110%, rgba(134, 239, 172, 0.07), transparent 70%),
      linear-gradient(165deg, var(--bg-0) 0%, var(--bg-1) 45%, var(--bg-2) 100%);
  }

  body[data-theme="franchise"] #screen-app {
    background: linear-gradient(180deg, rgba(8, 8, 8, 0.98), rgba(14, 14, 14, 0.98));
  }

  body[data-theme="franchise"] .screen {
    background: linear-gradient(145deg, rgba(17, 17, 17, 0.92), rgba(25, 25, 25, 0.95));
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.62);
  }

  body[data-theme="franchise"] .bg-grid {
    background-image:
      linear-gradient(rgba(167, 243, 208, 0.045) 1px, transparent 1px),
      linear-gradient(90deg, rgba(167, 243, 208, 0.04) 1px, transparent 1px);
  }

  body[data-theme="franchise"] .header-card,
  body[data-theme="franchise"] .panel,
  body[data-theme="franchise"] .stat-card,
  body[data-theme="franchise"] .section-card,
  body[data-theme="franchise"] .feature-card {
    background: rgba(18, 18, 18, 0.82);
    border-color: rgba(255, 255, 255, 0.1);
  }

  body[data-theme="franchise"] .bg-orb.orb-a {
    background: radial-gradient(circle, rgba(52, 211, 153, 0.22) 0%, transparent 70%);
  }

  body[data-theme="franchise"] .bg-orb.orb-b {
    background: radial-gradient(circle, rgba(22, 163, 74, 0.18) 0%, transparent 70%);
  }

  body[data-theme="franchise"] .loading-ring {
    border-color: rgba(167, 243, 208, 0.22);
    border-top-color: #4ade80;
  }

  body[data-theme="franchise"] .dot.active {
    background: linear-gradient(90deg, #4ade80, #22c55e);
  }

  body[data-theme="franchise"] .btn-primary {
    color: #edfff5;
    background: linear-gradient(120deg, var(--accent-d), #22c55e 52%, #34d399);
    box-shadow: 0 6px 24px rgba(34, 197, 94, 0.38);
  }

  body[data-theme="franchise"] .btn-primary:hover {
    box-shadow: 0 8px 28px rgba(34, 197, 94, 0.52);
  }

  body[data-theme="franchise"] .eyebrow,
  body[data-theme="franchise"] .home-kicker,
  body[data-theme="franchise"] .preview-email-link {
    color: #cdbdff;
  }

  body[data-theme="franchise"] .phantom-label {
    color: rgba(134, 239, 172, 0.9);
  }

  body[data-theme="franchise"] .home-kicker,
  body[data-theme="franchise"] .home-welcome span {
    color: #86efac;
  }

  body[data-theme="franchise"] .home-links {
    color: rgba(187, 247, 208, 0.84);
  }

  body[data-theme="franchise"] .header-card .eyebrow {
    color: #9af7c2;
  }

  body[data-theme="franchise"] .header-card .user-meta-chip-rank {
    color: #86efac;
  }

  body[data-theme="franchise"] .home-welcome span {
    color: #86efac;
  }

  body[data-theme="franchise"] .balance-label {
    color: rgba(181, 197, 235, 0.78);
  }

  body[data-theme="franchise"] .balance-value {
    color: #7df4ae;
    text-shadow: 0 0 20px rgba(34, 197, 94, 0.32);
  }

  body[data-theme="franchise"] .home-hero {
    background: linear-gradient(140deg, rgba(20, 20, 20, 0.94), rgba(11, 11, 11, 0.98));
  }

  body[data-theme="franchise"] .home-hero::after {
    background: radial-gradient(circle, rgba(134, 239, 172, 0.24), rgba(134, 239, 172, 0.06));
  }

  body[data-theme="franchise"] .home-stat-card {
    border-color: rgba(52, 211, 153, 0.32);
    background: rgba(20, 20, 20, 0.8);
  }

  body[data-theme="franchise"] .home-send-cta {
    border-color: rgba(214, 255, 244, 0.62);
    background:
      radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.20), rgba(255, 255, 255, 0) 42%),
      linear-gradient(145deg, #4ade80, #22c55e 52%, #16a34a 100%);
    box-shadow:
      0 0 0 5px rgba(74, 222, 128, 0.14),
      0 12px 22px rgba(14, 116, 52, 0.52),
      inset 0 1px 0 rgba(255, 255, 255, 0.42),
      inset 0 -8px 16px rgba(6, 72, 61, 0.28);
  }

  body[data-theme="franchise"] .home-send-copy span,
  body[data-theme="franchise"] .home-send-arrow {
    color: rgba(231, 255, 248, 0.84);
  }

  body[data-theme="franchise"] .home-send-icon {
    border-color: rgba(214, 255, 244, 0.48);
    background: rgba(255, 255, 255, 0.15);
  }

  body[data-theme="franchise"] .app-lock-overlay,
  body[data-theme="franchise"] .account-lock-settings-modal {
    background: rgba(3, 3, 3, 0.9);
  }

  body[data-theme="franchise"] .app-lock-card {
    border-color: rgba(52, 211, 153, 0.36);
    background: linear-gradient(145deg, rgba(14, 14, 14, 0.96), rgba(7, 7, 7, 0.96));
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.62);
  }

  body[data-theme="franchise"] .account-lock-card {
    border-color: rgba(52, 211, 153, 0.28);
    background: rgba(10, 14, 12, 0.78);
  }

  body[data-theme="franchise"] .account-setting-label,
  body[data-theme="franchise"] .app-lock-kicker {
    color: rgba(187, 247, 208, 0.78);
  }

  body[data-theme="franchise"] .app-lock-hint {
    color: rgba(184, 196, 207, 0.9);
  }

  body[data-theme="franchise"] .account-lock-type {
    border-color: rgba(52, 211, 153, 0.32);
    background: rgba(9, 15, 12, 0.84);
  }

  body[data-theme="franchise"] .account-lock-type-btn {
    color: rgba(134, 239, 172, 0.76);
  }

  body[data-theme="franchise"] .account-lock-type-btn.active {
    color: #edfff5;
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.28), rgba(22, 163, 74, 0.22));
  }

  body[data-theme="franchise"] .account-pin-key {
    border-color: rgba(52, 211, 153, 0.44);
    background: rgba(22, 163, 74, 0.14);
    color: #edfff5;
  }

  body[data-theme="franchise"] .account-pin-key:hover,
  body[data-theme="franchise"] .account-pin-key:focus-visible {
    background: rgba(22, 163, 74, 0.24);
    border-color: rgba(134, 239, 172, 0.72);
  }

  body[data-theme="franchise"] .account-pin-field-active .form-control {
    border-color: rgba(134, 239, 172, 0.72);
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.2);
  }

  body[data-theme="franchise"] .account-lock-status {
    color: rgba(134, 239, 172, 0.9);
  }

  body[data-theme="franchise"] .account-lock-modal-close {
    color: rgba(187, 247, 208, 0.84);
  }

  body[data-theme="franchise"] .account-lock-modal-close:hover,
  body[data-theme="franchise"] .account-lock-modal-close:focus-visible {
    color: #ecfdf5;
  }

  body[data-theme="franchise"] .bottom-dock {
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.98), rgba(5, 5, 5, 0.99));
    border-top-color: rgba(38, 201, 174, 0.44);
  }

  body[data-theme="franchise"] .dock-item {
    color: rgba(214, 198, 255, 0.75);
  }

  body[data-theme="franchise"] .dock-item::before,
  body[data-theme="franchise"] .dock-send::after {
    background: linear-gradient(90deg, #86efac, #16a34a);
  }

  body[data-theme="franchise"] .dock-send-chip {
    border-color: rgba(214, 255, 244, 0.62);
    background:
      radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0) 45%),
      linear-gradient(145deg, #4ade80, #22c55e 52%, #16a34a 100%);
    box-shadow:
      0 0 0 5px rgba(74, 222, 128, 0.14),
      0 12px 22px rgba(14, 116, 52, 0.52),
      inset 0 1px 0 rgba(255, 255, 255, 0.42),
      inset 0 -8px 16px rgba(6, 72, 61, 0.28);
  }

  body[data-theme="franchise"] .app-view[data-view="home"] .header-card::after,
  body[data-theme="franchise"] .app-view[data-view="account"] .header-card::after,
  body[data-theme="franchise"] .app-view[data-view="shop"] .header-card::after,
  body[data-theme="franchise"] .app-view[data-view="templates"] .header-card::after {
    background: rgba(34, 197, 94, 0.38);
  }

  body[data-theme="franchise"] .templates-header-count {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.22), rgba(22, 163, 74, 0.12));
    border-color: rgba(74, 222, 128, 0.34);
  }

  body[data-theme="franchise"] .templates-header-count-icon {
    background: rgba(52, 211, 153, 0.28);
    border-color: rgba(74, 222, 128, 0.34);
    color: #bbf7d0;
  }

  body[data-theme="franchise"] .templates-header-count-num {
    color: #dcfce7;
  }

  body[data-theme="franchise"] .templates-header-count-label {
    color: rgba(167, 243, 208, 0.78);
  }

  body[data-theme="franchise"] .send-page-head {
    border-top-color: rgba(52, 211, 153, 0.28);
    border-bottom-color: rgba(52, 211, 153, 0.28);
    background: #0b0b0b;
  }

  body[data-theme="franchise"] .send-flow-title {
    color: #dcfce7;
  }

  body[data-theme="franchise"] .send-back,
  body[data-theme="franchise"] .send-current-country,
  body[data-theme="franchise"] .templates-subpage-head .send-back,
  body[data-theme="franchise"] .header-card.templates-header .send-back {
    border-color: rgba(52, 211, 153, 0.4);
    background: rgba(17, 17, 17, 0.92);
    color: #d1fae5;
  }

  body[data-theme="franchise"] .send-back:hover,
  body[data-theme="franchise"] .send-back:focus-visible,
  body[data-theme="franchise"] .templates-subpage-head .send-back:hover,
  body[data-theme="franchise"] .templates-subpage-head .send-back:focus-visible,
  body[data-theme="franchise"] .header-card.templates-header .send-back:hover,
  body[data-theme="franchise"] .header-card.templates-header .send-back:focus-visible {
    border-color: rgba(74, 222, 128, 0.72);
    color: #ecfdf5;
    box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.18);
  }

  body[data-theme="franchise"] .preview-email-link {
    color: #86efac;
  }

  body[data-theme="franchise"] .preview-email-link:hover,
  body[data-theme="franchise"] .preview-email-link:focus-visible {
    color: #bbf7d0;
  }

  body[data-theme="franchise"] .send-country-list,
  body[data-theme="franchise"] .brand-template-list,
  body[data-theme="franchise"] .template-form-grid,
  body[data-theme="franchise"] .template-params-list {
    gap: 10px;
  }

  body[data-theme="franchise"] .country-item,
  body[data-theme="franchise"] .send-category,
  body[data-theme="franchise"] .template-row,
  body[data-theme="franchise"] .template-library-row {
    border-color: rgba(52, 211, 153, 0.3);
    background: rgba(15, 15, 15, 0.86);
    color: #ecfdf5;
  }

  body[data-theme="franchise"] .country-flag,
  body[data-theme="franchise"] .send-category-icon,
  body[data-theme="franchise"] .template-row-icon {
    background: #131313;
    border-color: rgba(52, 211, 153, 0.34);
    color: rgba(187, 247, 208, 0.92);
  }

  body[data-theme="franchise"] .send-category-icon svg {
    stroke: #d1fae5;
  }

  body[data-theme="franchise"] .send-category-icon .crypto-glyph text,
  body[data-theme="franchise"] .template-row-icon .crypto-glyph text,
  body[data-theme="franchise"] .template-form-logo.template-form-logo-fallback .crypto-glyph text {
    fill: #d1fae5;
  }

  body[data-theme="franchise"] .send-category-meta,
  body[data-theme="franchise"] .template-row-meta,
  body[data-theme="franchise"] .send-flow-subtitle,
  body[data-theme="franchise"] .template-library-row-meta,
  body[data-theme="franchise"] .templates-group-copy,
  body[data-theme="franchise"] .form-help,
  body[data-theme="franchise"] .send-progress-text {
    color: rgba(167, 243, 208, 0.82);
  }

  body[data-theme="franchise"] .send-category-arrow,
  body[data-theme="franchise"] .template-library-row-arrow,
  body[data-theme="franchise"] .send-progress-link {
    color: rgba(134, 239, 172, 0.9);
  }

  body[data-theme="franchise"] .send-category:disabled,
  body[data-theme="franchise"] .send-category[aria-disabled="true"] {
    background: rgba(12, 12, 12, 0.58);
    border-color: rgba(84, 106, 95, 0.34);
  }

  body[data-theme="franchise"] .send-placeholder {
    background: linear-gradient(150deg, rgba(20, 20, 20, 0.74), rgba(10, 10, 10, 0.82));
    border-color: rgba(52, 211, 153, 0.24);
  }

  body[data-theme="franchise"] .send-current-country {
    border-color: rgba(52, 211, 153, 0.4);
    background: rgba(18, 18, 18, 0.74);
    color: #d1fae5;
  }

  body[data-theme="franchise"] .template-search,
  body[data-theme="franchise"] .template-search-input,
  body[data-theme="franchise"] .form-control,
  body[data-theme="franchise"] .template-page-btn {
    border-color: rgba(52, 211, 153, 0.36);
    background: rgba(17, 17, 17, 0.9);
    color: #ecfdf5;
  }

  body[data-theme="franchise"] .template-search-icon {
    color: rgba(167, 243, 208, 0.92);
  }

  body[data-theme="franchise"] .form-label,
  body[data-theme="franchise"] .template-params-dev-note {
    color: rgba(209, 250, 229, 0.95);
  }

  body[data-theme="franchise"] .template-form-logo {
    background-color: rgba(18, 18, 18, 0.62);
    border-color: rgba(52, 211, 153, 0.3);
  }

  body[data-theme="franchise"] .template-params-card,
  body[data-theme="franchise"] .templates-group {
    border-color: rgba(52, 211, 153, 0.3);
    background: rgba(14, 14, 14, 0.84);
  }

  body[data-theme="franchise"] .template-tile {
    border-color: rgba(52, 211, 153, 0.32);
    background: rgba(18, 18, 18, 0.86);
    color: #ecfdf5;
  }

  body[data-theme="franchise"] .no-templates-state,
  body[data-theme="franchise"] .template-library-empty {
    border-color: rgba(52, 211, 153, 0.34);
    background: rgba(12, 12, 12, 0.8);
    color: rgba(167, 243, 208, 0.88);
  }

  body[data-theme="franchise"] .send-progress-bar-track {
    background: rgba(52, 211, 153, 0.22);
  }

  body[data-theme="franchise"] .send-progress-bar {
    background: rgba(74, 222, 128, 0.72);
  }

  body[data-theme="franchise"] .template-preview-panel {
    color: #d1fae5;
  }

  body[data-theme="franchise"] .template-preview-loading,
  body[data-theme="franchise"] .template-preview-meta,
  body[data-theme="franchise"] .template-preview-json {
    border-color: rgba(52, 211, 153, 0.3);
    background: rgba(12, 12, 12, 0.82);
    color: #dcfce7;
  }

  body[data-theme="franchise"] .template-preview-shell {
    border-color: rgba(52, 211, 153, 0.3);
    background: linear-gradient(180deg, rgba(24, 24, 24, 0.95), rgba(15, 15, 15, 0.94));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  body[data-theme="franchise"] .template-upload-overlay {
    background: rgba(0, 0, 0, 0.74);
  }

  body[data-theme="franchise"] .templates-subpage-head {
    border-bottom-color: rgba(52, 211, 153, 0.28);
  }

  body[data-theme="franchise"] .shop-home-toggle {
    border-color: rgba(34, 197, 94, 0.32);
    background: rgba(16, 16, 16, 0.82);
  }

  body[data-theme="franchise"] .shop-custom-prefix {
    color: rgba(167, 243, 208, 0.88);
  }

  body[data-theme="franchise"] .shop-token-btn {
    border-color: rgba(52, 211, 153, 0.34);
    background: rgba(14, 14, 14, 0.84);
  }

  body[data-theme="franchise"] .shop-token-btn:hover,
  body[data-theme="franchise"] .shop-token-btn:focus-visible {
    border-color: rgba(74, 222, 128, 0.54);
    background: rgba(20, 20, 20, 0.9);
  }

  body[data-theme="franchise"] .shop-token-btn.selected {
    border-color: #4ade80;
    background: linear-gradient(145deg, rgba(18, 18, 18, 0.95), rgba(8, 8, 8, 0.98));
    box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.16), 0 4px 12px rgba(34, 197, 94, 0.24);
  }

  body[data-theme="franchise"] .shop-token-meta {
    color: rgba(167, 243, 208, 0.82);
  }

  body[data-theme="franchise"] .shop-token-check {
    border-color: rgba(74, 222, 128, 0.38);
  }

  body[data-theme="franchise"] .shop-token-btn.selected .shop-token-check {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    border-color: #4ade80;
    color: #052e1f;
  }

  body[data-theme="franchise"] .shop-address-card {
    border-color: rgba(52, 211, 153, 0.36);
    background: rgba(12, 12, 12, 0.86);
  }

  body[data-theme="franchise"] .shop-address-network-badge {
    background: linear-gradient(90deg, rgba(52, 211, 153, 0.24), rgba(22, 163, 74, 0.16));
    border-color: rgba(74, 222, 128, 0.44);
    color: #bbf7d0;
  }

  body[data-theme="franchise"] .shop-address-title {
    color: rgba(167, 243, 208, 0.86);
  }

  body[data-theme="franchise"] .shop-deposit-address {
    color: #d1fae5;
  }

  body[data-theme="franchise"] .shop-copy-btn {
    border-color: rgba(74, 222, 128, 0.46);
    background: rgba(52, 211, 153, 0.14);
    color: #bbf7d0;
  }

  body[data-theme="franchise"] .shop-copy-btn:hover {
    background: rgba(52, 211, 153, 0.24);
    border-color: rgba(74, 222, 128, 0.62);
  }

  body[data-theme="franchise"] .shop-copy-btn.copied {
    background: rgba(74, 222, 128, 0.2);
    border-color: rgba(74, 222, 128, 0.62);
    color: #dcfce7;
  }

  body[data-theme="franchise"] .shop-deposit-meta {
    border-color: rgba(52, 211, 153, 0.3);
    background: rgba(10, 10, 10, 0.86);
  }

  body[data-theme="franchise"] .shop-deposit-meta-row {
    border-bottom-color: rgba(52, 211, 153, 0.18);
  }

  body[data-theme="franchise"] .shop-deposit-meta-key {
    color: rgba(167, 243, 208, 0.76);
  }

  body[data-theme="franchise"] .shop-deposit-meta-val {
    color: #d1fae5;
  }

  body[data-theme="franchise"] .shop-meta-address-val.is-pending {
    color: rgba(167, 243, 208, 0.68);
  }

  body[data-theme="franchise"] .shop-status-processing {
    color: #86efac;
  }

  body[data-theme="franchise"] .shop-home-toggle-btn {
    color: rgba(167, 243, 208, 0.74);
  }

  body[data-theme="franchise"] .shop-home-toggle-btn.active {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.24), rgba(22, 163, 74, 0.2));
    color: #ecfdf5;
    box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.35) inset;
  }

  body[data-theme="franchise"] .shop-home-toggle-btn:hover,
  body[data-theme="franchise"] .shop-home-toggle-btn:focus-visible {
    color: #ecfdf5;
  }

  body[data-theme="franchise"] .shop-back-inline {
    color: rgba(167, 243, 208, 0.9);
  }

  body[data-theme="franchise"] .shop-back-inline:hover {
    color: #dcfce7;
  }

  body[data-theme="franchise"] .shop-step-kicker {
    color: rgba(134, 239, 172, 0.92);
  }

  body[data-theme="franchise"] .shop-section-copy strong,
  body[data-theme="franchise"] #shop-membership-copy strong {
    color: #bbf7d0;
  }

  body[data-theme="franchise"] .shop-rank-card {
    border-color: rgba(34, 197, 94, 0.38);
    background: rgba(16, 16, 16, 0.86);
  }

  body[data-theme="franchise"] .shop-rank-card.shop-rank-sale {
    border-color: rgba(74, 222, 128, 0.58);
    background: linear-gradient(145deg, rgba(23, 23, 23, 0.9), rgba(13, 13, 13, 0.96));
    box-shadow: 0 0 0 1px rgba(110, 231, 183, 0.16) inset, 0 0 18px rgba(34, 197, 94, 0.22), 0 8px 22px rgba(0, 0, 0, 0.44);
  }

  body[data-theme="franchise"] .shop-rank-card.shop-rank-best {
    border-color: rgba(255, 190, 80, 0.62);
    background: linear-gradient(145deg, rgba(24, 24, 24, 0.96), rgba(6, 6, 6, 0.99));
    box-shadow: 0 0 0 1px rgba(255, 217, 130, 0.24) inset, 0 0 20px rgba(255, 193, 76, 0.42), 0 10px 28px rgba(33, 20, 4, 0.42);
  }

  body[data-theme="franchise"] .shop-rank-card.shop-rank-best .shop-rank-period,
  body[data-theme="franchise"] .shop-rank-card.shop-rank-best .shop-rank-price,
  body[data-theme="franchise"] .shop-rank-card.shop-rank-best .shop-rank-perks li {
    color: #ffe082;
  }

  body[data-theme="franchise"] .shop-rank-card.shop-rank-best .shop-rank-perks li::before {
    color: #fbbf24;
  }

  body[data-theme="franchise"] .shop-rank-badge.shop-rank-badge-best {
    background: linear-gradient(90deg, #ffd060, #ff9a20);
    color: #2a1200;
  }

  body[data-theme="franchise"] .shop-rank-badge {
    background: linear-gradient(90deg, #22c55e, #16a34a);
    color: #ecfdf5;
  }

  body[data-theme="franchise"] .shop-rank-period {
    color: rgba(167, 243, 208, 0.74);
  }

  body[data-theme="franchise"] .shop-rank-original {
    color: rgba(167, 243, 208, 0.42);
  }

  body[data-theme="franchise"] .shop-rank-price {
    color: #d1fae5;
  }

  body[data-theme="franchise"] .shop-rank-per {
    color: rgba(167, 243, 208, 0.64);
  }

  body[data-theme="franchise"] .shop-rank-perks li {
    color: rgba(209, 250, 229, 0.9);
  }

  body[data-theme="franchise"] .shop-rank-perks li::before {
    color: #34d399;
  }

  body[data-theme="franchise"] .shop-rank-btn-weekly {
    border-color: rgba(110, 231, 183, 0.72);
    background: linear-gradient(120deg, #15803d, #16a34a 55%, #22c55e);
    box-shadow: 0 0 0 1px rgba(167, 243, 208, 0.2) inset;
  }

  body[data-theme="franchise"] .shop-rank-btn-weekly:hover,
  body[data-theme="franchise"] .shop-rank-btn-weekly:focus-visible {
    border-color: rgba(167, 243, 208, 0.95);
    box-shadow: 0 0 0 1px rgba(209, 250, 229, 0.3) inset;
  }

  body[data-theme="franchise"] .shop-rank-btn-monthly {
    border-color: rgba(255, 211, 110, 0.76);
    background: linear-gradient(135deg, #0b0b0b, #000000 58%, #121212);
    color: #ffe082;
    box-shadow: 0 0 0 1px rgba(255, 225, 150, 0.22) inset;
  }

  body[data-theme="franchise"] .shop-rank-btn-monthly:hover,
  body[data-theme="franchise"] .shop-rank-btn-monthly:focus-visible {
    border-color: rgba(255, 226, 150, 0.95);
    color: #ffefb0;
    box-shadow: 0 0 0 1px rgba(255, 234, 170, 0.34) inset;
  }

  body[data-theme="franchise"] .email-preview-header {
    background: linear-gradient(120deg, #16a34a, #22c55e 52%, #4ade80);
  }

  body[data-theme="franchise"] .dock {
    border-top-color: #22c55e;
  }

  body[data-theme="franchise"] .dock-tab.active {
    color: var(--accent-a);
  }

  body[data-theme="franchise"] .dock-tab.active svg {
    filter: drop-shadow(0 0 4px rgba(34, 197, 94, 0.7));
  }

  body[data-theme="franchise"] .hero-badge {
    background: linear-gradient(135deg, rgba(52,211,153,0.18), rgba(22,163,74,0.10));
    border-color: rgba(52, 211, 153, 0.3);
  }

  body[data-theme="franchise"] .section-card,
  body[data-theme="franchise"] .feature-card {
    background: var(--card);
    border-color: rgba(52, 211, 153, 0.18);
  }

  body[data-theme="franchise"] .balance-ring {
    stroke: var(--accent-a);
    filter: drop-shadow(0 0 6px rgba(34, 197, 94, 0.55));
  }

  body[data-theme="franchise"] .tag {
    background: rgba(52, 211, 153, 0.15);
    color: var(--accent-c);
    border-color: rgba(52, 211, 153, 0.25);
  }

  body[data-theme="franchise"] input:focus,
  body[data-theme="franchise"] select:focus,
  body[data-theme="franchise"] textarea:focus {
    border-color: var(--accent-a);
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.18);
  }

  body[data-theme="franchise"] .particles {
    opacity: 0.45;
  }

  /* ── Shop preset buttons (topup amounts) ── */
  body[data-theme="franchise"] .shop-preset-btn {
    border-color: rgba(52, 211, 153, 0.35);
    background: rgba(6, 30, 24, 0.7);
  }

  body[data-theme="franchise"] .shop-preset-btn:hover,
  body[data-theme="franchise"] .shop-preset-btn:focus-visible {
    border-color: rgba(74, 222, 128, 0.55);
    background: rgba(10, 40, 32, 0.8);
  }

  body[data-theme="franchise"] .shop-preset-btn.selected {
    border-color: #4ade80;
    background: linear-gradient(145deg, rgba(12, 74, 50, 0.9), rgba(6, 54, 38, 0.96));
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.18), 0 6px 18px rgba(52, 211, 153, 0.3);
  }

  body[data-theme="franchise"] .shop-preset-amount {
    color: #ecfdf5;
  }

  /* ── Popular monthlyplan (gold/black styling) ── */
  body[data-theme="franchise"] .shop-preset-popular {
    border-color: rgba(217, 119, 6, 0.55) !important;
    background: linear-gradient(145deg, rgba(42, 21, 0, 0.88), rgba(30, 17, 0, 0.94)) !important;
  }

  body[data-theme="franchise"] .shop-preset-popular.selected {
    border-color: #d97706 !important;
    background: linear-gradient(145deg, rgba(78, 22, 0, 0.9), rgba(55, 15, 0, 0.96)) !important;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.18), 0 6px 18px rgba(217, 119, 6, 0.3) !important;
  }

  body[data-theme="franchise"] .shop-preset-popular-tag {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    color: #78350f;
  }

  body[data-theme="franchise"] .shop-preset-popular.selected .shop-preset-popular-tag {
    background: linear-gradient(90deg, #fcd34d, #fbbf24);
    color: #92400e;
  }

  /* ── Selected amount display ── */
  body[data-theme="franchise"] .shop-amount-selected {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.18), rgba(52, 211, 153, 0.1));
    border-color: rgba(74, 222, 128, 0.38);
  }

  body[data-theme="franchise"] .shop-amount-selected-label {
    color: rgba(167, 243, 208, 0.75);
  }

  body[data-theme="franchise"] .shop-amount-selected-value {
    color: #d1fae5;
  }

  /* ── Pay-as-you-go display ── */
  body[data-theme="franchise"] .shop-payg-qty {
    color: #ecfdf5;
  }

  body[data-theme="franchise"] .shop-payg-unit {
    color: rgba(167, 243, 208, 0.5);
  }

  body[data-theme="franchise"] .shop-payg-total {
    color: #4ade80;
  }

  body[data-theme="franchise"] .shop-payg-rate {
    color: rgba(167, 243, 208, 0.42);
  }

  /* ── Range slider ── */
  body[data-theme="franchise"] .shop-token-slider {
    background: rgba(52, 211, 153, 0.2);
  }

  body[data-theme="franchise"] .shop-token-slider::-webkit-slider-thumb {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.2), 0 3px 8px rgba(52, 211, 153, 0.4);
  }

  body[data-theme="franchise"] .shop-token-slider::-moz-range-thumb {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.2), 0 3px 8px rgba(52, 211, 153, 0.4);
  }

  body[data-theme="franchise"] .shop-slider-labels {
    color: rgba(167, 243, 208, 0.35);
  }
