/* Earnora build 20261016r69 */
:root {
  --bg: #0c1210;
  --bg-elev: #141c18;
  --bg-soft: #1a2420;
  --ink: #eef3ef;
  --muted: #8fa399;
  --line: rgba(238, 243, 239, 0.09);
  --accent: #3dcf8e;
  --accent-2: #e8c27a;
  --danger: #ff7b72;
  --ok: #3dcf8e;
  --radius: 18px;
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Syne", "DM Sans", sans-serif;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  --phone-w: 430px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --tab-h: calc(84px + var(--safe-b));
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --css-build: 20261016r69;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: #070a09;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
  overflow: hidden; /* page itself never scrolls — only .app-scroll */
  height: 100dvh;
}
a { color: var(--accent); text-decoration: none; }
h1, h2, h3, .brand, .brand-hero, .page-title {
  font-family: var(--display);
  letter-spacing: -0.03em;
  margin: 0 0 0.35rem;
}
.hidden { display: none !important; }
.muted { color: var(--muted); }
.center { text-align: center; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; word-break: break-all; }
.pos { color: var(--ok); }
.neg { color: var(--danger); }
.mono { font-family: var(--mono); word-break: break-all; font-variant-numeric: tabular-nums; }

/* Admin impersonation strip */
.impersonate-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-shrink: 0;
  padding: 0.55rem 0.85rem;
  background: linear-gradient(90deg, #2a2110, #1a281f);
  border-bottom: 1px solid rgba(232, 194, 122, 0.35);
  color: #f0e2b8;
  font-size: 0.78rem;
  font-weight: 600;
  z-index: 40;
}
.impersonate-banner strong { color: #fff; font-weight: 750; }
.impersonate-banner-form { margin: 0; }
.impersonate-banner .btn {
  padding: 0.28rem 0.7rem;
  font-size: 0.72rem;
  border-radius: 999px;
  background: rgba(232, 194, 122, 0.18);
  border: 1px solid rgba(232, 194, 122, 0.45);
  color: #f6e9c4;
}

/* Phone app shell */
.app-phone {
  width: min(100%, var(--phone-w));
  margin: 0 auto;
  height: 100dvh;
  min-height: 100dvh;
  max-height: 100dvh;
  background:
    radial-gradient(900px 420px at 20% -10%, rgba(61, 207, 142, 0.16), transparent 55%),
    radial-gradient(700px 380px at 110% 8%, rgba(232, 194, 122, 0.1), transparent 50%),
    var(--bg);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow);
  overflow: hidden;
}
@media (min-width: 500px) {
  body.theme-app, body.theme-guest {
    display: grid;
    place-items: center;
    padding: 1rem;
    height: 100dvh;
    overflow: hidden;
    background:
      linear-gradient(160deg, #0a100e, #060807 60%);
  }
  .app-phone {
    height: min(920px, calc(100dvh - 2rem));
    min-height: min(920px, calc(100dvh - 2rem));
    max-height: calc(100dvh - 2rem);
    border-radius: 28px;
    border: 1px solid var(--line);
    overflow: hidden;
  }
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: calc(0.75rem + env(safe-area-inset-top, 0px)) 1rem 0.75rem;
  background: #0f2a1f;
  border-bottom: 1px solid rgba(61, 207, 142, 0.18);
  position: sticky;
  top: 0;
  z-index: 30;
}
.app-topbar-left { display: flex; align-items: center; gap: 0.75rem; }
.app-topbar-right { display: flex; align-items: center; gap: 0.35rem; }
.app-topbar-meta { min-width: 0; }
.app-hello { margin: 0; font-size: 0.78rem; color: var(--muted); }
.app-bal { font-family: var(--display); font-size: 1.05rem; }
.app-bal-top {
  font-size: 0.82rem;
  margin-right: 0.15rem;
  color: var(--accent);
}
.app-account-id-row {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  margin-top: 0.08rem;
  max-width: 100%;
}
.app-account-id {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.92rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  line-height: 1.2;
  color: #e8f2ec;
  white-space: nowrap;
}
.app-account-copy {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(238, 243, 239, 0.06);
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.app-account-copy:hover,
.app-account-copy:focus-visible {
  background: rgba(61, 207, 142, 0.16);
  color: var(--accent);
  outline: none;
}
.avatar-btn {
  width: 40px; height: 40px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #234236, #163028);
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--line);
}
.icon-btn {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid; place-items: center;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  position: relative;
  text-decoration: none;
}
.badge-dot {
  position: absolute;
  top: 4px; right: 4px;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: grid; place-items: center;
}

.app-scroll {
  flex: 1;
  min-height: 0; /* allow flex child to scroll instead of growing the page */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  padding: 1rem 1rem calc(var(--tab-h) + 0.5rem);
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* legacy Edge */
}
.app-scroll::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* Pull-to-refresh: icon slides out from under the header background */
.app-ptr {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 35; /* below .app-topbar (40) so it emerges from header bg */
  width: 40px;
  height: 40px;
  margin-left: -20px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0, 0, 0) scale(0.72);
  background:
    radial-gradient(circle at 50% 40%, rgba(61, 207, 142, 0.18), transparent 60%),
    rgba(16, 22, 19, 0.96);
  border: 1px solid rgba(61, 207, 142, 0.32);
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: var(--accent);
  will-change: transform, opacity;
}
.app-ptr.is-visible {
  opacity: 1;
}
.app-ptr.is-ready {
  border-color: rgba(61, 207, 142, 0.65);
  color: #7aefb4;
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.42),
    0 0 0 3px rgba(61, 207, 142, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.app-ptr.is-refreshing .app-ptr-ico {
  animation: appPtrSpin 0.7s linear infinite !important;
  transform-origin: 50% 50% !important;
}
.app-ptr-ico {
  display: block;
  transform-origin: 50% 50%;
  will-change: transform;
}
.app-phone.is-ptr-dragging .app-scroll {
  overscroll-behavior-y: none;
}
@keyframes appPtrSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.app-phone,
.notice-scroll,
.table-wrap,
body:not(.theme-admin) {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.app-phone::-webkit-scrollbar,
.notice-scroll::-webkit-scrollbar,
.table-wrap::-webkit-scrollbar,
body:not(.theme-admin)::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* Admin: vertical page scroll only — never a bottom/horizontal bar */
body.theme-admin {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  scrollbar-width: thin;
  -ms-overflow-style: auto;
}
body.theme-admin::-webkit-scrollbar {
  width: 10px;
  height: 0; /* no horizontal scrollbar chrome */
}
body.theme-admin::-webkit-scrollbar-track {
  background: #0c100e;
}
body.theme-admin::-webkit-scrollbar-thumb {
  background: rgba(61, 207, 142, 0.35);
  border-radius: 999px;
  border: 2px solid #0c100e;
}
body.theme-admin::-webkit-scrollbar-thumb:hover {
  background: rgba(61, 207, 142, 0.5);
}

/* Shared admin custom scrollbar */
.ad-scroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(61, 207, 142, 0.4) rgba(0, 0, 0, 0.25);
  -ms-overflow-style: auto;
}
.ad-scroll::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.ad-scroll::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.28);
  border-radius: 999px;
  margin: 6px 0;
}
.ad-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(94, 224, 164, 0.55), rgba(61, 207, 142, 0.35));
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
  box-shadow: inset 0 0 0 1px rgba(61, 207, 142, 0.15);
}
.ad-scroll::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(94, 224, 164, 0.75), rgba(61, 207, 142, 0.55));
  background-clip: padding-box;
}
.ad-scroll::-webkit-scrollbar-corner {
  background: transparent;
}

.notice-scroll {
  display: flex; gap: 0.65rem;
  overflow-x: auto; padding-bottom: 0.25rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.app-scroll.enter { animation: rise 0.35s ease both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.app-tabbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 0 0.7rem calc(0.55rem + var(--safe-b));
  pointer-events: none;
  transition: opacity 0.2s ease;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(8, 12, 10, 0.35) 35%,
    rgba(8, 12, 10, 0.72) 100%
  );
}
.app-tabbar-inner {
  pointer-events: auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 0.15rem;
  padding: 0.4rem 0.35rem 0.45rem;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(28, 38, 33, 0.92), rgba(14, 20, 17, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(0, 0, 0, 0.25) inset,
    0 1px 0 rgba(255, 255, 255, 0.05) inset;
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}
.tab-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.22rem;
  min-height: 52px;
  padding: 0.35rem 0.15rem 0.3rem;
  border-radius: 14px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition:
    color 0.2s ease,
    background 0.22s ease,
    transform 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
.tab-item::before {
  content: "";
  position: absolute;
  top: 0.35rem;
  width: 14px;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 0.2s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.tab-ico {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), color 0.2s ease;
}
.tab-ico svg {
  display: block;
}
.tab-label {
  line-height: 1;
  opacity: 0.88;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.tab-item:hover {
  color: #c7d6cd;
}
.tab-item:active {
  transform: scale(0.94);
}
.tab-item.is-active {
  color: var(--accent);
  background: rgba(61, 207, 142, 0.1);
}
.tab-item.is-active::before {
  opacity: 1;
  transform: scaleX(1);
}
.tab-item.is-active .tab-ico {
  transform: translateY(-1px);
}
.tab-item.is-active .tab-label {
  opacity: 1;
  color: var(--accent);
}

.tab-item.tab-center {
  gap: 0.28rem;
  background: transparent;
  min-height: 52px;
}
.tab-item.tab-center::before {
  display: none;
}
.tab-item.tab-center.is-active {
  background: transparent;
  color: var(--accent);
}
.tab-fab {
  position: relative;
  width: 50px;
  height: 50px;
  margin-top: -22px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  background:
    linear-gradient(145deg, #5ee0a4 0%, var(--accent) 45%, #2aa86f 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 12px 28px rgba(61, 207, 142, 0.38),
    0 0 0 5px rgba(12, 18, 16, 0.92),
    0 0 0 6px rgba(61, 207, 142, 0.18);
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.22s ease,
    filter 0.2s ease;
}
.tab-fab::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.35), transparent 55%);
  pointer-events: none;
  opacity: 0.7;
}
.tab-item.tab-center:hover .tab-fab {
  filter: brightness(1.05);
  transform: translateY(-2px);
}
.tab-item.tab-center:active .tab-fab {
  transform: scale(0.96);
}
.tab-item.tab-center.is-active .tab-fab {
  box-shadow:
    0 14px 32px rgba(61, 207, 142, 0.48),
    0 0 0 5px rgba(12, 18, 16, 0.92),
    0 0 0 7px rgba(61, 207, 142, 0.28);
}
.tab-item.tab-center .tab-label {
  margin-top: 0.05rem;
}

@media (prefers-reduced-motion: reduce) {
  .tab-item,
  .tab-ico,
  .tab-fab,
  .tab-item::before {
    transition: none !important;
  }
}

.topbar, .topbar-guest {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
}
.brand { font-weight: 800; font-size: 1.2rem; color: var(--ink); text-decoration: none; }
.brand-with-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.brand-logo-img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  background: #0a0a0a;
}
.topnav { display: flex; gap: 0.65rem; align-items: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 0.75rem 1.15rem;
  font: inherit; font-weight: 600;
  background: var(--accent); color: #fff;
  cursor: pointer; text-decoration: none;
  box-shadow: none;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { filter: brightness(1.05); text-decoration: none; transform: translateY(-1px); }
.btn:focus-visible { box-shadow: 0 0 0 3px rgba(61, 207, 142, 0.35); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn.is-loading,
.btn.is-loading:disabled,
button.is-loading,
button.is-loading:disabled,
a.is-loading,
input[type="submit"].is-loading,
input[type="submit"].is-loading:disabled {
  position: relative;
  opacity: 0.92 !important;
  cursor: wait !important;
  pointer-events: none !important;
  transform: none !important;
  filter: none !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  box-shadow: none !important;
}
.btn.is-loading > *,
button.is-loading > *,
a.is-loading > * {
  visibility: hidden !important;
}
.btn.is-loading::before,
button.is-loading::before,
a.is-loading::before {
  content: '';
  position: absolute;
  z-index: 2;
  width: 1.15em;
  height: 1.15em;
  top: 50%;
  left: 50%;
  margin: -0.575em 0 0 -0.575em;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.32);
  border-top-color: #fff;
  animation: btnSpin 0.65s linear infinite;
  box-sizing: border-box;
}
.btn-ghost.is-loading::before,
a.btn.btn-ghost.is-loading::before,
.btn-ghost-solid.is-loading::before {
  border-color: rgba(238, 243, 239, 0.28);
  border-top-color: var(--ink);
}
.btn.is-danger.is-loading::before,
.btn-ghost.is-danger.is-loading::before,
.btn.em-btn-danger.is-loading::before {
  border-color: rgba(232, 93, 93, 0.28);
  border-top-color: #e85d5d;
}
.ad-icon-btn.is-loading {
  color: transparent !important;
}
.ad-icon-btn.is-loading::before {
  border-color: rgba(238, 243, 239, 0.28);
  border-top-color: var(--accent);
  width: 1em;
  height: 1em;
  margin: -0.5em 0 0 -0.5em;
}
.ad-icon-btn.is-danger.is-loading::before {
  border-top-color: #e85d5d;
}
.ad-icon-btn.is-ok.is-loading::before {
  border-top-color: var(--accent);
}
form.is-submitting {
  cursor: wait;
}
@keyframes btnSpin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .btn.is-loading::before,
  button.is-loading::before,
  a.is-loading::before {
    animation-duration: 1.15s;
  }
}
.btn-sm { padding: 0.45rem 0.85rem; font-size: 0.88rem; }
.btn-block { width: 100%; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn-ghost:focus-visible { box-shadow: 0 0 0 3px rgba(238, 243, 239, 0.12); }

.home-hero { margin-bottom: 0.5rem; animation: rise 0.4s ease both; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem; color: var(--muted); margin: 0; }
.balance-xl {
  font-family: var(--display);
  font-size: clamp(2.2rem, 10vw, 2.8rem);
  font-weight: 800; margin: 0.15rem 0 0.85rem;
}
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}
.qa {
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
  padding: 0.7rem 0.3rem;
  border-radius: 16px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.72rem; font-weight: 600;
  text-decoration: none;
}
.qa span {
  width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(61, 207, 142, 0.12);
  color: var(--accent); font-size: 1rem;
}

/* Home — premium dashboard */
.home-wallet {
  position: relative;
  overflow: hidden;
  padding: 1.25rem 1.15rem 1.2rem;
  margin-bottom: 0.35rem;
  border-radius: 24px;
  background: linear-gradient(165deg, #1a2c24 0%, #101814 55%, #0e1612 100%);
  border: 1px solid rgba(61, 207, 142, 0.22);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  animation: rise 0.45s ease both;
}
.home-wallet-glow {
  position: absolute;
  width: 220px; height: 220px;
  right: -60px; top: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 207, 142, 0.22), transparent 68%);
  pointer-events: none;
}
.home-wallet-label {
  margin: 0.45rem 0 0.1rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.home-balance {
  font-family: var(--display);
  font-size: clamp(2.35rem, 11vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 0.35rem;
  background: linear-gradient(120deg, #fff 20%, var(--accent) 75%, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.home-wallet-sub { margin: 0 0 1rem; font-size: 0.82rem; }
.home-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}
.home-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 0.25rem;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 700;
  text-decoration: none;
}
.home-action.primary {
  background: rgba(61, 207, 142, 0.12);
  border-color: rgba(61, 207, 142, 0.28);
}
.ha-ico {
  width: 36px; height: 36px;
  border-radius: 12px;
  display: grid; place-items: center;
  color: var(--accent);
  background: rgba(61, 207, 142, 0.12);
  border: 1px solid rgba(61, 207, 142, 0.2);
}
.home-action:not(.primary) .ha-ico {
  color: var(--accent-2);
  background: rgba(232, 194, 122, 0.1);
  border-color: rgba(232, 194, 122, 0.22);
}

.home-checkin {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(232, 194, 122, 0.1), rgba(20, 28, 24, 0.95));
  border: 1px solid rgba(232, 194, 122, 0.28);
  animation: rise 0.4s ease both;
}
.home-checkin.is-done {
  background: linear-gradient(135deg, rgba(61, 207, 142, 0.08), rgba(20, 28, 24, 0.95));
  border-color: rgba(61, 207, 142, 0.22);
}
.home-checkin-ico {
  width: 46px; height: 46px;
  border-radius: 15px;
  display: grid; place-items: center;
  color: var(--accent-2);
  background: rgba(232, 194, 122, 0.12);
  border: 1px solid rgba(232, 194, 122, 0.25);
  flex-shrink: 0;
}
.home-checkin.is-done .home-checkin-ico {
  color: var(--accent);
  background: rgba(61, 207, 142, 0.12);
  border-color: rgba(61, 207, 142, 0.25);
}
.home-checkin-body { flex: 1; min-width: 0; }
.home-checkin-body strong { display: block; margin-bottom: 0.1rem; }
.home-checkin-body .muted { margin: 0; font-size: 0.82rem; }
.home-streak {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.22rem;
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}
.home-streak li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.05rem;
  padding: 0.22rem 0;
  border-radius: 8px;
  background: rgba(238, 243, 239, 0.05);
  border: 1px solid var(--line);
  font-size: 0.58rem;
  color: var(--muted);
  line-height: 1.15;
}
.home-streak b { font-size: 0.66rem; color: var(--ink); font-weight: 700; }
.home-streak li.is-big b { color: var(--accent-2); }
.home-streak li.is-done { background: rgba(61, 207, 142, 0.14); border-color: rgba(61, 207, 142, 0.35); color: var(--accent); }
.home-streak li.is-done b { color: var(--accent); }
.home-streak li.is-next { border-color: var(--accent-2); box-shadow: 0 0 0 1px rgba(232, 194, 122, 0.35); }
.home-pill {
  display: inline-block;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}
.home-pill.ok {
  color: var(--ok);
  border-color: rgba(61, 207, 142, 0.35);
  background: rgba(61, 207, 142, 0.1);
}
.home-pill.soft {
  color: var(--accent);
  border-color: rgba(61, 207, 142, 0.28);
  background: rgba(61, 207, 142, 0.08);
  margin-bottom: 0.45rem;
}

.home-plan {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.15rem 1.15rem 1.05rem;
  border-radius: 22px;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(61, 207, 142, 0.16), transparent 52%),
    radial-gradient(80% 70% at 100% 100%, rgba(232, 194, 122, 0.06), transparent 55%),
    linear-gradient(165deg, #1b2a23 0%, #121916 55%, #0e1411 100%);
  border: 1px solid rgba(61, 207, 142, 0.2);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 14px 36px rgba(0, 0, 0, 0.28);
  position: relative;
  overflow: hidden;
  animation: rise 0.45s ease both;
}
.home-plan::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(61, 207, 142, 0.35), transparent);
  pointer-events: none;
}
.home-plan.is-complete { border-color: rgba(61, 207, 142, 0.32); }
.home-plan.empty { text-align: center; padding: 1.5rem 1.2rem; gap: 0; }
.home-plan-empty-ico {
  width: 56px; height: 56px; margin: 0 auto 0.85rem;
  border-radius: 18px;
  display: grid; place-items: center;
  color: var(--accent);
  background: rgba(61, 207, 142, 0.1);
  border: 1px solid rgba(61, 207, 142, 0.22);
}
.home-plan.empty h3 { margin-bottom: 0.3rem; }
.home-plan.empty .muted { margin: 0 0 1rem; }

.home-plan-main {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.home-plan-copy { flex: 1; min-width: 0; }
.home-plan-kicker {
  display: block;
  margin: 0 0 0.2rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.home-plan-title {
  margin: 0 0 0.2rem;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}
.home-plan-sub {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.35;
}

.home-plan-ring {
  --pct: 0;
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}
.home-plan-ring svg { transform: rotate(-90deg); display: block; }
.home-plan-ring .ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 5.5;
}
.home-plan-ring .ring-fg {
  fill: none;
  stroke: var(--accent);
  stroke-width: 5.5;
  stroke-linecap: round;
  stroke-dasharray: 207.345;
  stroke-dashoffset: calc(207.345 - (207.345 * var(--pct) / 100));
  transition: stroke-dashoffset 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  filter: drop-shadow(0 0 6px rgba(61, 207, 142, 0.35));
}
.home-plan.is-complete .home-plan-ring .ring-fg {
  filter: drop-shadow(0 0 8px rgba(61, 207, 142, 0.55));
}
.home-plan-ring .ring-label {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  pointer-events: none;
  font-family: var(--display);
  letter-spacing: -0.04em;
  line-height: 1;
  z-index: 1;
}
.home-plan-ring .ring-label b {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
  display: inline-block;
}
.home-plan-ring .ring-label span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1;
  display: inline-block;
  transform: translateY(1px);
}

.home-plan-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}
.hp-stat {
  padding: 0.55rem 0.5rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  min-width: 0;
}
.hp-stat-label {
  display: block;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.2rem;
}
.hp-stat-value {
  display: block;
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-plan-track {
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.home-plan-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2aa86f, var(--accent) 60%, #7ae0b0);
  box-shadow: 0 0 10px rgba(61, 207, 142, 0.4);
  transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-plan-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
}
.home-plan-earned {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
}
.home-plan-earned strong {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}
.home-plan-ends { font-size: 0.78rem; white-space: nowrap; }

.home-plan-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
}
.home-plan-banner.is-wait {
  background: rgba(61, 207, 142, 0.08);
  border: 1px solid rgba(61, 207, 142, 0.22);
  color: #9be8c4;
}
.home-plan-banner.is-go {
  background: rgba(232, 194, 122, 0.08);
  border: 1px solid rgba(232, 194, 122, 0.22);
  color: #e8d4a8;
}
.home-plan-banner-ico {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  margin-top: 1px;
}
.home-plan-banner.is-wait .home-plan-banner-ico {
  background: rgba(61, 207, 142, 0.14);
  color: var(--accent);
}
.home-plan-banner.is-go .home-plan-banner-ico {
  background: rgba(232, 194, 122, 0.14);
  color: var(--accent-2);
}
.home-plan-banner-copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  line-height: 1.3;
}
.home-plan-banner-copy strong {
  font-size: 0.86rem;
  font-weight: 700;
  color: inherit;
}
.home-plan-banner.is-wait .home-plan-banner-copy strong { color: #c8f5dd; }
.home-plan-banner.is-go .home-plan-banner-copy strong { color: #f0e2b8; }
.home-plan-banner-copy span {
  font-size: 0.76rem;
  opacity: 0.85;
}

.home-plan-cta { gap: 0.4rem; margin-top: 0.1rem; }
.home-plan .btn { gap: 0.4rem; }

.home-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}
.home-stat {
  display: grid;
  gap: 0.25rem;
  padding: 0.95rem;
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(28, 38, 34, 0.96), rgba(14, 18, 16, 0.98));
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  animation: rise 0.4s ease both;
}
.home-stat .muted { font-size: 0.72rem; }
.home-stat strong {
  font-size: 1.05rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hs-ico {
  width: 34px; height: 34px;
  border-radius: 11px;
  display: grid; place-items: center;
  margin-bottom: 0.2rem;
  color: var(--accent);
  background: rgba(61, 207, 142, 0.1);
  border: 1px solid rgba(61, 207, 142, 0.2);
}
.hs-ico.gold {
  color: var(--accent-2);
  background: rgba(232, 194, 122, 0.1);
  border-color: rgba(232, 194, 122, 0.22);
}

.home-news { display: grid; gap: 0.65rem; }
.home-news-card {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
}
.home-news-ico {
  width: 38px; height: 38px;
  border-radius: 12px;
  display: grid; place-items: center;
  flex-shrink: 0;
  color: var(--accent);
  background: rgba(61, 207, 142, 0.1);
  border: 1px solid rgba(61, 207, 142, 0.2);
}
.home-news-card strong { display: block; margin-bottom: 0.2rem; font-size: 0.95rem; }
.home-news-card p { margin: 0; color: var(--muted); font-size: 0.85rem; line-height: 1.4; }

.home-activity { display: grid; gap: 0.55rem; }
.home-tx {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 0.9rem;
  border-radius: 16px;
  background: rgba(20, 28, 24, 0.85);
  border: 1px solid var(--line);
}
a.home-tx.is-link {
  color: inherit;
  text-decoration: none;
}
a.home-tx.is-link:hover {
  border-color: rgba(61, 207, 142, 0.35);
}
.home-tx-ico {
  width: 38px; height: 38px;
  border-radius: 12px;
  display: grid; place-items: center;
  color: var(--accent);
  background: rgba(61, 207, 142, 0.1);
  border: 1px solid rgba(61, 207, 142, 0.2);
}
.home-tx.kind-withdraw .home-tx-ico {
  color: var(--accent-2);
  background: rgba(232, 194, 122, 0.1);
  border-color: rgba(232, 194, 122, 0.22);
}
.home-tx-body { min-width: 0; }
.home-tx-body strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-tx-body .muted { font-size: 0.72rem; }
.home-empty-note { padding: 0.5rem 0 0; }

.home-links { display: grid; gap: 0.5rem; }
.home-links a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}
.hl-ico {
  width: 36px; height: 36px;
  border-radius: 11px;
  display: grid; place-items: center;
  color: var(--accent);
  background: rgba(61, 207, 142, 0.1);
  border: 1px solid rgba(61, 207, 142, 0.2);
}
.hl-arrow { margin-left: auto; color: var(--muted); font-size: 1.2rem; }

.section { margin: 1.25rem 0; }
.section-head, .row-between {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  margin-bottom: 0.65rem;
}
.section-head h2, .page-head h1 { margin: 0; }
.page-head { margin-bottom: 1rem; }
.section-sub { color: var(--muted); margin: 0 0 1rem; }

.info-block, .checkin-card {
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(20, 28, 24, 0.92);
  border: 1px solid var(--line);
}
.checkin-card {
  display: flex; justify-content: space-between; align-items: center; gap: 0.75rem;
}
.plan-list, .method-list, .notice-list { display: grid; gap: 0.7rem; }

/* Premium plan cards */
.plans-head .ink { color: var(--ink); }
.plan-stack { display: grid; gap: 1rem; }
.active-plan-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(61,207,142,0.16), rgba(232,194,122,0.08));
  border: 1px solid rgba(61,207,142,0.28);
}
.active-plan-banner strong { display: block; font-size: 1.05rem; margin: 0.15rem 0; }

.plan-pro {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 1.15rem 1.15rem 1.2rem;
  background:
    linear-gradient(165deg, rgba(30, 42, 36, 0.95), rgba(16, 22, 19, 0.98));
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
  animation: rise 0.45s ease both;
}
.plan-pro.tone-b {
  background:
    linear-gradient(165deg, rgba(28, 36, 40, 0.95), rgba(14, 18, 20, 0.98));
}
.plan-pro.featured {
  border-color: rgba(61, 207, 142, 0.45);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(61, 207, 142, 0.18), transparent 50%),
    radial-gradient(90% 60% at 0% 100%, rgba(232, 194, 122, 0.12), transparent 45%),
    linear-gradient(165deg, #1a2c24, #101814);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(61, 207, 142, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: scale(1.01);
}
.plan-pro.is-current {
  border-color: rgba(232, 194, 122, 0.4);
}
.plan-pro::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(61,207,142,0.55), rgba(232,194,122,0.45), transparent);
  opacity: 0.7;
}
.plan-pro.featured::before {
  height: 3px;
  opacity: 1;
}

.plan-ribbon {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(120deg, var(--accent), #7be0b0);
  box-shadow: 0 6px 16px rgba(61, 207, 142, 0.3);
}
.plan-ribbon.current {
  color: #2a210f;
  background: linear-gradient(120deg, var(--accent-2), #f0d9a0);
  box-shadow: 0 6px 16px rgba(232, 194, 122, 0.28);
}

.plan-pro-top {
  display: grid;
  gap: 0.85rem;
  padding-right: 4.5rem;
  margin-bottom: 1rem;
}
.plan-pro-top h3 {
  font-size: 1.35rem;
  margin: 0 0 0.25rem;
}
.plan-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}
.plan-price-block {
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
  flex-wrap: wrap;
}
.plan-currency {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-2);
}
.plan-amount {
  font-family: var(--display);
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.plan-period {
  width: 100%;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.plan-yield {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0.35rem;
  padding: 0.85rem 0.7rem;
  margin-bottom: 0.95rem;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
  text-align: center;
}
.plan-yield .muted { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; display: block; margin-bottom: 0.15rem; }
.plan-yield strong { font-size: 0.95rem; }
.plan-yield-divider {
  width: 1px;
  height: 28px;
  background: var(--line);
}

.plan-specs {
  list-style: none;
  margin: 0 0 1.05rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.plan-specs li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: var(--ink);
}
.spec-ico {
  width: 22px; height: 22px;
  border-radius: 8px;
  display: grid; place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(61, 207, 142, 0.12);
  border: 1px solid rgba(61, 207, 142, 0.2);
  flex-shrink: 0;
}

.plan-pro-cta .btn { min-height: 46px; }
.btn-ghost-solid {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn-ghost-solid:hover { background: rgba(61, 207, 142, 0.12); border-color: rgba(61, 207, 142, 0.3); }
.plan-need { display: grid; gap: 0.55rem; width: 100%; }
.plan-need > span {
  text-align: center;
  font-size: 0.82rem;
  color: var(--accent-2);
}

.plan-stack .plan-pro:nth-child(1) { animation-delay: 0.04s; }
.plan-stack .plan-pro:nth-child(2) { animation-delay: 0.1s; }
.plan-stack .plan-pro:nth-child(3) { animation-delay: 0.16s; }
.plan-stack .plan-pro:nth-child(4) { animation-delay: 0.22s; }

.progress-bar {
  height: 8px; border-radius: 999px;
  background: rgba(255,255,255,0.06);
  overflow: hidden; margin: 0.65rem 0;
}
.progress-bar i {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: inherit;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}
.stat-grid > div, .admin-stats > div {
  padding: 0.95rem;
  border-radius: var(--radius);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  display: grid; gap: 0.2rem;
}
.stat-grid strong { font-size: 1.2rem; }

.tx-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.tx-list li {
  display: flex; justify-content: space-between; gap: 0.75rem; align-items: flex-start;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}
.empty-state { justify-content: center; padding: 2rem 0 !important; }

/* Notifications — premium */
.notif-empty {
  text-align: center;
  padding: 2.2rem 1.2rem;
  border-radius: 22px;
  background: linear-gradient(165deg, rgba(26, 36, 32, 0.95), rgba(14, 18, 16, 0.98));
  border: 1px solid var(--line);
}
.notif-empty-icon {
  width: 72px; height: 72px; margin: 0 auto 1rem;
  border-radius: 20px;
  display: grid; place-items: center;
  color: var(--accent);
  background: rgba(61, 207, 142, 0.1);
  border: 1px solid rgba(61, 207, 142, 0.22);
}
.notif-empty h2 { margin-bottom: 0.35rem; }
.notif-empty .btn { margin-top: 1rem; }

.notif-stack { display: grid; gap: 0.7rem; }
.notif-pro {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 1.05rem;
  border-radius: 20px;
  background: linear-gradient(165deg, rgba(28, 38, 34, 0.96), rgba(14, 18, 16, 0.98));
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
  animation: rise 0.4s ease both;
  overflow: hidden;
}
.notif-pro.is-new {
  border-color: rgba(61, 207, 142, 0.28);
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(61, 207, 142, 0.1), transparent 50%),
    linear-gradient(165deg, rgba(28, 40, 34, 0.98), rgba(14, 18, 16, 0.98));
}
.notif-pro-icon {
  width: 46px; height: 46px;
  border-radius: 15px;
  display: grid; place-items: center;
  flex-shrink: 0;
  color: var(--accent);
  background: rgba(61, 207, 142, 0.1);
  border: 1px solid rgba(61, 207, 142, 0.2);
}
.notif-pro.kind-deposit .notif-pro-icon { color: var(--accent); }
.notif-pro.kind-withdraw .notif-pro-icon {
  color: var(--accent-2);
  background: rgba(232, 194, 122, 0.1);
  border-color: rgba(232, 194, 122, 0.25);
}
.notif-pro.kind-checkin .notif-pro-icon,
.notif-pro.kind-bonus .notif-pro-icon,
.notif-pro.kind-task .notif-pro-icon { color: var(--accent); }
.notif-pro.kind-plan .notif-pro-icon {
  color: #8fd4ff;
  background: rgba(120, 180, 255, 0.1);
  border-color: rgba(120, 180, 255, 0.22);
}
.notif-pro.kind-reject .notif-pro-icon {
  color: var(--danger);
  background: rgba(255, 123, 114, 0.1);
  border-color: rgba(255, 123, 114, 0.25);
}
.notif-pro-body { min-width: 0; }
.notif-pro-top {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  margin-bottom: 0.3rem;
}
.notif-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.notif-time {
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
}
.notif-pro-body h3 {
  font-size: 0.98rem;
  margin: 0 0 0.25rem;
  line-height: 1.3;
}
.notif-pro-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}
.notif-dot {
  position: absolute;
  top: 14px; right: 14px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(61, 207, 142, 0.18);
}
.notif-stack .notif-pro:nth-child(1) { animation-delay: 0.03s; }
.notif-stack .notif-pro:nth-child(2) { animation-delay: 0.07s; }
.notif-stack .notif-pro:nth-child(3) { animation-delay: 0.11s; }
.notif-stack .notif-pro:nth-child(4) { animation-delay: 0.15s; }
.notif-stack .notif-pro:nth-child(5) { animation-delay: 0.19s; }

.notice-chip {
  min-width: 78%;
  scroll-snap-align: start;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
}
.notice-chip p { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.9rem; }

.form-stack { display: grid; gap: 0.8rem; margin-top: 0.85rem; }
.form-stack.tight { gap: 0.4rem; margin-top: 0.4rem; }
.form-inline { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
label { display: grid; gap: 0.3rem; font-size: 0.9rem; color: var(--muted); }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  font: inherit;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(61, 207, 142, 0.3);
  border-color: var(--accent);
}
.check { display: flex; align-items: center; gap: 0.5rem; }
.check input { width: auto; }

/* Admin animated toggle switches */
.ad-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
}
.ad-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}
.ad-switch-track {
  position: relative;
  width: 46px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 999px;
  background: rgba(238, 243, 239, 0.12);
  border: 1px solid rgba(238, 243, 239, 0.12);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
  transition:
    background 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}
.ad-switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(165deg, #f4f7f5, #cfd8d3);
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.28s ease,
    box-shadow 0.28s ease;
}
.ad-switch input:checked + .ad-switch-track {
  background: linear-gradient(135deg, #4adf9b, var(--accent) 55%, #2aa86f);
  border-color: rgba(61, 207, 142, 0.55);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.18),
    0 0 0 3px rgba(61, 207, 142, 0.14);
}
.ad-switch input:checked + .ad-switch-track::after {
  transform: translateX(18px);
  background: linear-gradient(165deg, #fff, #e8fff4);
  box-shadow:
    0 2px 8px rgba(6, 40, 24, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.2);
}
.ad-switch:hover .ad-switch-track {
  border-color: rgba(61, 207, 142, 0.28);
}
.ad-switch input:focus-visible + .ad-switch-track {
  outline: 2px solid rgba(61, 207, 142, 0.55);
  outline-offset: 3px;
}
.ad-switch input:active + .ad-switch-track::after {
  width: 24px;
}
.ad-switch input:checked:active + .ad-switch-track::after {
  transform: translateX(14px);
}
.ad-switch-text {
  line-height: 1.35;
}
.ad-switch.is-danger input:checked + .ad-switch-track {
  background: linear-gradient(135deg, #ff9a92, #ff7b72 55%, #e2554c);
  border-color: rgba(255, 123, 114, 0.5);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.14),
    0 0 0 3px rgba(255, 123, 114, 0.12);
}
@media (prefers-reduced-motion: reduce) {
  .ad-switch-track,
  .ad-switch-track::after {
    transition: none;
  }
}

.alert {
  padding: 0.8rem 1rem;
  border-radius: 14px;
  margin: 0 0 0.85rem;
  border: 1px solid var(--line);
  animation: rise 0.3s ease both;
}
.alert-ok { background: rgba(61, 207, 142, 0.12); color: #b9f5d4; }
.alert-err { background: rgba(255, 123, 114, 0.12); color: #ffc4bf; }

.gate-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.95rem 1.05rem;
  border-radius: 18px;
  border: 1px solid rgba(232, 194, 122, 0.28);
  background: linear-gradient(135deg, rgba(232, 194, 122, 0.14), rgba(61, 207, 142, 0.06));
  animation: rise 0.35s ease both;
}
.gate-banner-body { min-width: 0; flex: 1; }
.gate-banner strong { display: block; font-size: 0.95rem; margin-bottom: 0.2rem; }
.gate-banner .muted { margin: 0; font-size: 0.84rem; line-height: 1.4; }
.home-checkin.is-locked { opacity: 0.92; }
.home-checkin.is-locked .home-checkin-ico { color: var(--muted); }
.earn-rule-note {
  margin: 0 0 0.85rem;
  font-size: 0.84rem;
  line-height: 1.4;
}

/* Tasks daily progress — premium summary */
.task-progress-card {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  padding: 1.1rem 1.15rem 1rem;
  margin-bottom: 1.1rem;
  border-radius: 22px;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(61, 207, 142, 0.16), transparent 52%),
    radial-gradient(80% 70% at 100% 100%, rgba(232, 194, 122, 0.06), transparent 55%),
    linear-gradient(165deg, #1b2a23 0%, #121916 55%, #0e1411 100%);
  border: 1px solid rgba(61, 207, 142, 0.2);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 14px 36px rgba(0, 0, 0, 0.28);
  position: relative;
  overflow: hidden;
}
.task-progress-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(61, 207, 142, 0.35), transparent);
  pointer-events: none;
}
.task-progress-card.is-complete {
  border-color: rgba(61, 207, 142, 0.32);
}
.task-progress-main {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.task-progress-ring {
  --pct: 0;
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}
.task-progress-ring svg { transform: rotate(-90deg); display: block; }
.task-progress-ring .ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 5.5;
}
.task-progress-ring .ring-fg {
  fill: none;
  stroke: var(--accent);
  stroke-width: 5.5;
  stroke-linecap: round;
  stroke-dasharray: 207.345;
  stroke-dashoffset: calc(207.345 - (207.345 * var(--pct) / 100));
  transition: stroke-dashoffset 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  filter: drop-shadow(0 0 6px rgba(61, 207, 142, 0.35));
}
.task-progress-card.is-complete .task-progress-ring .ring-fg {
  filter: drop-shadow(0 0 8px rgba(61, 207, 142, 0.55));
}
.task-progress-ring .ring-label {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
  font-family: var(--display);
  letter-spacing: -0.04em;
  line-height: 1;
  z-index: 1;
}
.task-progress-ring .ring-label b {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
  display: inline-block;
}
.task-progress-ring .ring-label span {
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  display: inline-block;
  transform: translateY(1px);
  color: var(--muted);
}
.task-progress-copy { flex: 1; min-width: 0; }
.task-progress-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.task-progress-title {
  margin: 0 0 0.2rem;
  font-family: var(--display);
  font-size: 1.28rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}
.task-progress-sub {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.35;
}
.task-progress-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}
.tp-stat {
  padding: 0.55rem 0.5rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  min-width: 0;
}
.tp-stat-label {
  display: block;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.2rem;
}
.tp-stat-value {
  display: block;
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.task-progress-track {
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.task-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2aa86f, var(--accent) 60%, #7ae0b0);
  box-shadow: 0 0 10px rgba(61, 207, 142, 0.4);
  transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.task-risk-banner,
.task-done-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
}
.task-risk-banner {
  background: rgba(255, 123, 114, 0.08);
  border: 1px solid rgba(255, 123, 114, 0.22);
  color: #ffb4ae;
}
.task-done-banner {
  background: rgba(61, 207, 142, 0.08);
  border: 1px solid rgba(61, 207, 142, 0.22);
  color: #9be8c4;
}
.task-risk-ico {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  margin-top: 1px;
}
.task-risk-banner .task-risk-ico {
  background: rgba(255, 123, 114, 0.12);
  color: var(--danger);
}
.task-done-banner .task-risk-ico {
  background: rgba(61, 207, 142, 0.14);
  color: var(--accent);
}
.task-risk-copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  line-height: 1.3;
}
.task-risk-copy strong {
  font-size: 0.86rem;
  font-weight: 700;
  color: inherit;
}
.task-risk-banner .task-risk-copy strong { color: #ffc9c4; }
.task-done-banner .task-risk-copy strong { color: #c8f5dd; }
.task-risk-copy span {
  font-size: 0.76rem;
  opacity: 0.85;
}

/* —— Auth (login / register) —— */
.guest-phone.is-auth {
  background:
    radial-gradient(900px 420px at 10% -10%, rgba(61, 207, 142, 0.2), transparent 55%),
    radial-gradient(700px 380px at 110% 18%, rgba(232, 194, 122, 0.14), transparent 50%),
    radial-gradient(500px 280px at 50% 110%, rgba(61, 207, 142, 0.08), transparent 60%),
    var(--bg);
}
.auth-scroll {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
  padding-top: 1.35rem !important;
  padding-bottom: calc(1.75rem + env(safe-area-inset-bottom, 0px)) !important;
}
.auth-shell {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  animation: rise 0.45s ease both;
}
.auth-brand {
  text-align: center;
  margin-bottom: 1.15rem;
}
.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.auth-logo-mark {
  width: 44px; height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 24px rgba(61, 207, 142, 0.18);
}
.auth-logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.auth-logo-text {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}
.auth-tagline {
  margin: 0;
  font-size: 0.86rem;
}

.auth-card {
  position: relative;
  overflow: hidden;
  padding: 1.35rem 1.15rem 1.25rem;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(61, 207, 142, 0.09), transparent 30%),
    linear-gradient(165deg, #1a2a23 0%, #101714 100%);
  border: 1px solid rgba(61, 207, 142, 0.28);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.auth-card-glow {
  position: absolute;
  width: 220px; height: 220px;
  right: -80px; top: -90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 194, 122, 0.16), transparent 70%);
  pointer-events: none;
}
.auth-card-head {
  position: relative;
  z-index: 1;
  margin-bottom: 1.2rem;
}
.auth-card-head .eyebrow {
  color: var(--accent);
  font-weight: 700;
}
.auth-card-head h1 {
  margin: 0.2rem 0 0.4rem;
  font-size: clamp(1.6rem, 6vw, 1.95rem);
  letter-spacing: -0.03em;
}
.auth-card-head .muted {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
}
.auth-form {
  position: relative;
  z-index: 1;
  margin-top: 0;
  gap: 0.95rem;
}
.auth-field {
  display: grid;
  gap: 0.4rem;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--muted);
}
.auth-label {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.45rem;
  white-space: nowrap;
  line-height: 1.2;
}
.auth-optional {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}
.auth-input {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.5rem 0.15rem 0.7rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid var(--line);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.auth-input:focus-within {
  border-color: rgba(61, 207, 142, 0.65);
  background: rgba(0, 0, 0, 0.42);
  box-shadow: 0 0 0 3px rgba(61, 207, 142, 0.18);
}
.auth-input.is-locked {
  opacity: 0.78;
  background: rgba(0, 0, 0, 0.22);
  border-color: rgba(61, 207, 142, 0.22);
}
.auth-input.is-locked:focus-within {
  box-shadow: none;
  border-color: rgba(61, 207, 142, 0.22);
}
.auth-input input:disabled {
  color: var(--ink);
  opacity: 1;
  cursor: not-allowed;
}
.auth-lock {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--accent);
  flex-shrink: 0;
}
.auth-input-ico {
  display: grid;
  place-items: center;
  color: var(--muted);
  flex-shrink: 0;
  transition: color 0.2s ease;
}
.auth-input:focus-within .auth-input-ico { color: var(--accent); }
.auth-input input {
  flex: 1;
  min-width: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0.85rem 0.25rem;
  color: var(--ink);
  font-size: 0.95rem;
}
.auth-input input::placeholder {
  color: rgba(238, 243, 239, 0.28);
}
/* Chrome / Edge autofill paints a white box — force dark theme */
.auth-input input:-webkit-autofill,
.auth-input input:-webkit-autofill:hover,
.auth-input input:-webkit-autofill:focus,
.auth-input input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--ink) !important;
  caret-color: var(--ink);
  border: 0 !important;
  transition: background-color 99999s ease-out 0s !important;
  box-shadow: 0 0 0 1000px #0a100e inset !important;
  -webkit-box-shadow: 0 0 0 1000px #0a100e inset !important;
}
.auth-input:has(input:-webkit-autofill) {
  background: rgba(0, 0, 0, 0.42);
  border-color: rgba(61, 207, 142, 0.35);
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-text-fill-color: var(--ink) !important;
  caret-color: var(--ink);
  transition: background-color 99999s ease-out 0s !important;
  box-shadow: 0 0 0 1000px #121a16 inset !important;
  -webkit-box-shadow: 0 0 0 1000px #121a16 inset !important;
}
.auth-eye {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}
.auth-eye:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }
.auth-eye:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(61, 207, 142, 0.35);
}
.auth-submit {
  min-height: 3.05rem;
  margin-top: 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 14px;
  border-color: transparent;
  background: linear-gradient(145deg, #5ee0a4 0%, var(--accent) 45%, #2aa86f 100%);
  box-shadow: 0 10px 28px rgba(61, 207, 142, 0.28);
}
.auth-submit:hover {
  filter: brightness(1.06);
  box-shadow: 0 12px 32px rgba(61, 207, 142, 0.34);
}
.auth-switch {
  position: relative;
  z-index: 1;
  margin: 1.1rem 0 0;
  text-align: center;
  font-size: 0.88rem;
}
.auth-switch a {
  font-weight: 700;
  color: var(--accent);
}
.auth-legal {
  position: relative;
  z-index: 1;
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.4;
}
.auth-legal a {
  font-weight: 600;
  color: var(--accent);
}
.auth-trust {
  list-style: none;
  margin: 1.15rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}
.auth-trust li {
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
  background: rgba(20, 28, 24, 0.88);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

@media (prefers-reduced-motion: reduce) {
  .auth-shell { animation: none !important; }
}


.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--muted);
}
.pm-preview {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  background: rgba(20, 28, 24, 0.9);
  border: 1px solid var(--line);
}
.pm-preview img {
  border-radius: 10px;
  object-fit: cover;
  background: #fff;
}
.pm-list-main {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  min-width: 0;
}
.pm-list-icon {
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #fff;
}

/* —— Wallet / Withdraw —— */
.wallet-hero {
  position: relative;
  overflow: hidden;
  padding: 1.3rem 1.15rem 1.15rem;
  margin-bottom: 0.85rem;
  border-radius: 24px;
  background: linear-gradient(165deg, #1a2c24 0%, #101814 55%, #0c1210 100%);
  border: 1px solid rgba(61, 207, 142, 0.22);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  animation: rise 0.45s ease both;
}
.wallet-hero-glow {
  position: absolute;
  width: 240px; height: 240px;
  right: -70px; top: -90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 194, 122, 0.18), transparent 68%);
  pointer-events: none;
}
.wallet-hero-label {
  margin: 0.35rem 0 0.1rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.wallet-hero-balance {
  font-family: var(--display);
  font-size: clamp(2.2rem, 10vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 0.35rem;
  background: linear-gradient(120deg, #fff 15%, var(--accent) 70%, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wallet-hero-sub { margin: 0 0 1rem; font-size: 0.82rem; }
.wallet-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}
.wallet-stat {
  padding: 0.7rem 0.55rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
  text-align: center;
}
.wallet-stat .muted {
  display: block;
  font-size: 0.68rem;
  margin-bottom: 0.2rem;
}
.wallet-stat strong {
  font-size: 0.92rem;
  font-family: var(--display);
}

.wallet-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  padding: 0.35rem;
  margin-bottom: 1rem;
  border-radius: 16px;
  background: rgba(16, 22, 19, 0.95);
  border: 1px solid var(--line);
}
.wallet-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 0.5rem;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.wallet-tab-ico {
  display: grid;
  place-items: center;
  opacity: 0.85;
}
.wallet-tab.is-active {
  color: #0a120e;
  background: linear-gradient(135deg, var(--accent), #2aa86e);
  box-shadow: 0 8px 20px rgba(61, 207, 142, 0.28);
}
.wallet-tab.is-active .wallet-tab-ico { opacity: 1; }

.wallet-panel { animation: rise 0.35s ease both; }
.wallet-panel.is-hidden,
.wallet-tx-list.is-hidden { display: none; }
.wallet-panel-head { margin-bottom: 0.85rem; }
.wallet-panel-head h2 { margin: 0 0 0.2rem; font-size: 1.2rem; }
.wallet-panel-head .muted { margin: 0; font-size: 0.85rem; }

.wallet-method-card {
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: rgba(20, 28, 24, 0.92);
  border: 1px solid var(--line);
}
.wallet-method-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}
.wallet-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(61, 207, 142, 0.1);
  border: 1px solid rgba(61, 207, 142, 0.22);
}
.wallet-address {
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  font-size: 0.82rem;
}
.wallet-method-note { margin: 0.55rem 0 0; font-size: 0.82rem; }
.wallet-form { margin-top: 1rem; }

/* —— Deposit card —— */
.dp-card {
  position: relative;
  overflow: hidden;
  padding: 1.15rem 1.05rem 1.2rem;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(61, 207, 142, 0.08), transparent 30%),
    linear-gradient(165deg, #1a2a23 0%, #101814 100%);
  border: 1px solid rgba(61, 207, 142, 0.28);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3);
  animation: rise 0.4s ease both;
}
.dp-card-glow {
  position: absolute;
  width: 200px; height: 200px;
  right: -70px; top: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 207, 142, 0.16), transparent 70%);
  pointer-events: none;
}
.dp-head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}
.dp-head h2 { margin: 0 0 0.2rem; font-size: 1.25rem; }
.dp-head .muted { margin: 0; font-size: 0.84rem; line-height: 1.35; }
.dp-head-ico {
  width: 46px; height: 46px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--accent);
  background: rgba(61, 207, 142, 0.12);
  border: 1px solid rgba(61, 207, 142, 0.28);
}
.dp-steps {
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0.55rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
  position: relative;
  z-index: 1;
}
.dp-steps li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
}
.dp-steps li span {
  width: 22px; height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}
.dp-steps li.is-on { color: var(--accent); }
.dp-steps li.is-on span {
  background: rgba(61, 207, 142, 0.18);
  border-color: rgba(61, 207, 142, 0.4);
  color: var(--accent);
}
.dp-field {
  display: grid;
  gap: 0.4rem;
  position: relative;
  z-index: 1;
}
.dp-label {
  font-size: 0.88rem;
  color: var(--muted);
}
.dp-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}
.dp-method {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.75rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.15s ease;
}
.dp-method-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.dp-method-ico img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.dp-method-text {
  min-width: 0;
  display: grid;
  gap: 0.12rem;
}
.dp-method strong { font-size: 0.88rem; }
.dp-method small {
  color: var(--muted);
  font-size: 0.7rem;
}
.dp-method:hover { border-color: rgba(61, 207, 142, 0.35); }
.dp-method:active { transform: scale(0.98); }
.dp-method.is-active {
  border-color: rgba(61, 207, 142, 0.5);
  background: rgba(61, 207, 142, 0.12);
  box-shadow: 0 0 0 1px rgba(61, 207, 142, 0.12);
}
.dp-method.is-active .dp-method-ico {
  border-color: rgba(61, 207, 142, 0.45);
  box-shadow: 0 0 0 2px rgba(61, 207, 142, 0.12);
}
.dp-paybox {
  position: relative;
  z-index: 1;
  margin-bottom: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(61, 207, 142, 0.22);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.85rem;
  align-items: start;
}
.dp-paybox-main { min-width: 0; }
.dp-paybox-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.7rem;
}
.dp-paybox-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}
.dp-paybox-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.dp-paybox-ico img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.dp-paybox-top .muted {
  display: block;
  font-size: 0.72rem;
  margin-bottom: 0.15rem;
}
.dp-paybox-top strong { font-size: 0.95rem; }
.dp-pill {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(61, 207, 142, 0.1);
  border: 1px solid rgba(61, 207, 142, 0.25);
}
.dp-qr {
  width: 108px;
  padding: 0.45rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
.dp-qr img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 8px;
}
.dp-qr .muted {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.65rem;
  font-weight: 700;
  color: #4a5a52;
}
.dp-qr.is-empty { display: none; }
@media (max-width: 380px) {
  .dp-paybox {
    grid-template-columns: 1fr;
  }
  .dp-qr {
    width: 140px;
    margin: 0 auto;
  }
}
.dp-address-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.75rem;
  border-radius: 12px;
  background: rgba(12, 18, 16, 0.85);
  border: 1px solid var(--line);
}
.dp-address-row code {
  flex: 1;
  min-width: 0;
  font-size: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dp-copy {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(61, 207, 142, 0.3);
  background: rgba(61, 207, 142, 0.12);
  color: var(--accent);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.dp-copy:hover { background: rgba(61, 207, 142, 0.2); }
.dp-copy:active { transform: scale(0.96); }
.dp-note {
  margin: 0.65rem 0 0;
  font-size: 0.8rem;
  line-height: 1.4;
}
.dp-note.is-empty { display: none; }
.dp-form {
  position: relative;
  z-index: 1;
  margin-top: 0;
}
.dp-min-tag { font-size: 0.75rem; font-weight: 600; }
.dp-submit {
  min-height: 3rem;
  font-size: 1rem;
  margin-top: 0.15rem;
}
.dp-foot {
  margin: 0.15rem 0 0;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.4;
}
.wd-history { margin-top: 1.15rem; }
.wd-history h3 {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
}

.wd-card {
  position: relative;
  overflow: hidden;
  padding: 1.15rem 1.05rem 1.2rem;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(232, 194, 122, 0.07), transparent 32%),
    linear-gradient(165deg, #1c281f 0%, #121a16 100%);
  border: 1px solid rgba(232, 194, 122, 0.28);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
  animation: rise 0.4s ease both;
}
.wd-card-glow {
  position: absolute;
  width: 200px; height: 200px;
  left: -60px; bottom: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 207, 142, 0.14), transparent 70%);
  pointer-events: none;
}
.wd-head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
  position: relative;
  z-index: 1;
}
.wd-head h2 { margin: 0 0 0.2rem; font-size: 1.25rem; }
.wd-head .muted { margin: 0; font-size: 0.84rem; line-height: 1.35; }
.wd-head-ico {
  width: 46px; height: 46px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--accent-2);
  background: rgba(232, 194, 122, 0.12);
  border: 1px solid rgba(232, 194, 122, 0.28);
}
.wd-lock {
  padding: 0.95rem 1rem;
  margin-bottom: 1rem;
  border-radius: 16px;
  background: rgba(232, 194, 122, 0.08);
  border: 1px dashed rgba(232, 194, 122, 0.35);
  position: relative;
  z-index: 1;
}
.wd-lock strong { display: block; margin-bottom: 0.25rem; }
.wd-lock .muted { margin: 0 0 0.75rem; font-size: 0.85rem; }
.wd-form { position: relative; z-index: 1; margin-top: 0; }
.wd-form.is-disabled { opacity: 0.55; pointer-events: none; }
.wd-speed {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}
.wd-speed-opt {
  display: grid;
  gap: 0.28rem;
  text-align: left;
  padding: 0.75rem 0.8rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.wd-speed-opt small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}
.wd-speed-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem;
}
.wd-speed-fee {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
}
.wd-speed-opt.is-active {
  border-color: rgba(110, 231, 183, 0.55);
  background: rgba(110, 231, 183, 0.08);
}
.wd-speed-opt.is-active .wd-speed-fee {
  color: #6ee7b7;
}
@media (max-width: 380px) {
  .wd-speed { grid-template-columns: 1fr; }
}
.wd-field { display: grid; gap: 0.4rem; }
.wd-label,
.wd-amount-head label {
  font-size: 0.88rem;
  color: var(--muted);
}
.wd-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}
.wd-method {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.75rem 0.35rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.wd-method input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}
.wd-method-ico {
  width: 32px; height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--accent-2);
  background: rgba(232, 194, 122, 0.1);
  border: 1px solid rgba(232, 194, 122, 0.2);
}
.wd-method:hover {
  border-color: rgba(232, 194, 122, 0.35);
  color: var(--ink);
}
.wd-method.is-active {
  color: var(--ink);
  border-color: rgba(61, 207, 142, 0.45);
  background: rgba(61, 207, 142, 0.1);
  box-shadow: 0 0 0 1px rgba(61, 207, 142, 0.12);
}
.wd-method.is-active .wd-method-ico {
  color: var(--accent);
  background: rgba(61, 207, 142, 0.14);
  border-color: rgba(61, 207, 142, 0.3);
}
.wd-method:active { transform: scale(0.97); }

.wd-amount-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.wd-max {
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}
.wd-amount-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.85rem;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.wd-amount-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(61, 207, 142, 0.2);
}
.wd-currency {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--muted);
}
.wd-amount-wrap input {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0.85rem 0;
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.wd-quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  margin-top: 0.15rem;
}
.wd-chip {
  padding: 0.5rem 0.25rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  color: var(--ink);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.wd-chip:hover,
.wd-chip.is-active {
  border-color: rgba(61, 207, 142, 0.4);
  background: rgba(61, 207, 142, 0.12);
  color: var(--accent);
}

.wd-summary {
  margin-top: 0.15rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid var(--line);
  display: grid;
  gap: 0.45rem;
}
.wd-sum-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.9rem;
}
.wd-sum-net {
  margin-top: 0.2rem;
  padding-top: 0.55rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  font-size: 1rem;
}
.wd-sum-net strong {
  font-family: var(--display);
  font-size: 1.2rem;
}
.wd-hint {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
}
.wd-submit {
  margin-top: 0.25rem;
  min-height: 3rem;
  font-size: 1rem;
  border-color: rgba(232, 194, 122, 0.45) !important;
  background: linear-gradient(135deg, #c9a45a, #e8c27a) !important;
  color: #1a1408 !important;
  box-shadow: 0 10px 28px rgba(232, 194, 122, 0.22);
}
.wd-submit:hover:not(:disabled) { filter: brightness(1.05); }
.wd-submit:disabled { opacity: 0.45; box-shadow: none; }

/* Withdraw method modal — covers full phone shell (above tabbar) */
.wd-sheet {
  position: absolute;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}
.wd-sheet.hidden { display: none !important; }
.wd-sheet.is-open { pointer-events: auto; }
.wd-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 6, 0.72);
  backdrop-filter: blur(8px) saturate(1.05);
  -webkit-backdrop-filter: blur(8px) saturate(1.05);
  opacity: 0;
  transition: opacity 0.28s ease;
}
.wd-sheet.is-open .wd-sheet-backdrop { opacity: 1; }
.wd-sheet-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 380px);
  max-height: min(86dvh, 640px);
  overflow-y: auto;
  margin: 0 auto;
  padding: 1.25rem 1.15rem 1.15rem;
  border-radius: 22px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(232, 194, 122, 0.12), transparent 55%),
    linear-gradient(165deg, #1c281f, #101714);
  border: 1px solid rgba(232, 194, 122, 0.28);
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0, 0, 0, 0.35);
  transform: translateY(16px) scale(0.96);
  opacity: 0;
  transition:
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.28s ease;
  scrollbar-width: none;
}
.wd-sheet-panel::-webkit-scrollbar { display: none; }
.wd-sheet.is-open .wd-sheet-panel {
  transform: none;
  opacity: 1;
}
.wd-sheet-x {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  border: 1px solid rgba(238, 243, 239, 0.1);
  background: rgba(0, 0, 0, 0.28);
  color: var(--ink);
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.wd-sheet-x:hover {
  background: rgba(255, 123, 114, 0.12);
  border-color: rgba(255, 123, 114, 0.35);
  color: #ff7b72;
}
.wd-sheet-head {
  margin: 0 2.2rem 1rem 0;
  text-align: left;
}
.wd-sheet-head h2 {
  margin: 0 0 0.3rem;
  font-size: 1.22rem;
  letter-spacing: -0.02em;
}
.wd-sheet-head .muted {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.4;
}
.wd-sheet-head strong { color: var(--ink); }
.wd-sheet-methods {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
}
.wd-sheet-method {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.9rem 0.95rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.15s ease;
}
.wd-sheet-method:hover {
  border-color: rgba(232, 194, 122, 0.35);
}
.wd-sheet-method:active { transform: scale(0.985); }
.wd-sheet-method.is-active {
  border-color: rgba(61, 207, 142, 0.45);
  background: rgba(61, 207, 142, 0.1);
  box-shadow: 0 0 0 1px rgba(61, 207, 142, 0.1);
}
.wd-sheet-method-ico {
  width: 42px; height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0;
}
.wd-sheet-method-ico img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.wd-sheet-method.is-active .wd-sheet-method-ico {
  border-color: rgba(61, 207, 142, 0.4);
  box-shadow: 0 0 0 2px rgba(61, 207, 142, 0.12);
}
.wd-sheet-method-text { min-width: 0; }
.wd-sheet-method-text strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.1rem;
}
.wd-sheet-method-text small {
  color: var(--muted);
  font-size: 0.75rem;
}
.wd-sheet-check {
  opacity: 0;
  transform: scale(0.6);
  color: var(--accent);
  transition: opacity 0.18s ease, transform 0.22s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.wd-sheet-method.is-active .wd-sheet-check {
  opacity: 1;
  transform: scale(1);
}
.wd-sheet-summary {
  padding: 0.85rem 0.95rem;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
  display: grid;
  gap: 0.45rem;
}
.wd-sheet-summary .mono {
  max-width: 58%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 600;
}
.wd-sheet-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 0.55rem;
}
.wd-sheet-confirm {
  min-height: 2.85rem;
  border-color: rgba(232, 194, 122, 0.45) !important;
  background: linear-gradient(135deg, #c9a45a, #e8c27a) !important;
  color: #1a1408 !important;
}

@media (prefers-reduced-motion: reduce) {
  .wd-sheet-backdrop, .wd-sheet-panel { transition: none !important; }
}

.app-phone.is-wd-open .app-tabbar {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.wallet-history { margin-top: 1.5rem; }
.wallet-hist-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.wallet-hist-tabs::-webkit-scrollbar { display: none; }
.wallet-hist-tab {
  flex: 0 0 auto;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.wallet-hist-tab.is-active {
  color: var(--accent);
  border-color: rgba(61, 207, 142, 0.35);
  background: rgba(61, 207, 142, 0.1);
}
.wallet-tx-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.wallet-tx {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 0.9rem;
  border-radius: 16px;
  background: rgba(20, 28, 24, 0.88);
  border: 1px solid var(--line);
  animation: rise 0.35s ease both;
}
a.wallet-tx.is-link {
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
a.wallet-tx.is-link:hover {
  border-color: rgba(61, 207, 142, 0.35);
  background: rgba(24, 34, 29, 0.95);
}
.wallet-history-block {
  margin-top: 1.1rem;
}
.wallet-history-block h3 {
  margin: 0 0 0.65rem;
  font-size: 1rem;
}
.wallet-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}
.wallet-history-head h3 { margin: 0; }
.wallet-tx-ico {
  width: 38px; height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}
.wallet-tx-ico.wd {
  color: var(--accent-2);
  background: rgba(232, 194, 122, 0.1);
  border: 1px solid rgba(232, 194, 122, 0.22);
}
.wallet-tx-ico.dep {
  color: var(--accent);
  background: rgba(61, 207, 142, 0.1);
  border: 1px solid rgba(61, 207, 142, 0.2);
}
.wallet-tx-ico.led {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}
.wallet-tx-body { min-width: 0; }
.wallet-tx-body strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wallet-tx-body .muted {
  display: block;
  font-size: 0.72rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wallet-tx-meta {
  text-align: right;
  display: grid;
  gap: 0.2rem;
  justify-items: end;
}
.wallet-tx-meta strong { font-size: 0.92rem; }
.wallet-status {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.wallet-status.ok {
  color: var(--ok);
  border-color: rgba(61, 207, 142, 0.35);
  background: rgba(61, 207, 142, 0.08);
}
.wallet-status.warn {
  color: var(--accent-2);
  border-color: rgba(232, 194, 122, 0.35);
  background: rgba(232, 194, 122, 0.08);
}
.wallet-status.bad {
  color: var(--danger);
  border-color: rgba(232, 92, 92, 0.35);
  background: rgba(232, 92, 92, 0.08);
}
.wallet-empty-row {
  padding: 1.25rem 0.5rem;
  text-align: center;
  list-style: none;
}
.wallet-empty {
  padding: 1.5rem 1rem;
  text-align: center;
  border-radius: 16px;
  border: 1px dashed var(--line);
}

@media (prefers-reduced-motion: reduce) {
  .wallet-hero, .wd-card, .dp-card, .wallet-panel, .wallet-tx { animation: none !important; }
}

.timer-wrap { text-align: center; margin: 1.4rem 0; }
.timer-orbit {
  position: relative;
  width: 148px;
  height: 148px;
  margin: 0 auto 0.85rem;
  display: grid;
  place-items: center;
}
.timer-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.timer-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 8;
}
.timer-progress {
  fill: none;
  stroke: url(#timerGrad);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 326.73;
  stroke-dashoffset: 326.73;
  filter: drop-shadow(0 0 6px rgba(61, 207, 142, 0.35));
  transition: none;
}
.timer-orbit.is-running .timer-orbit-glow,
.timer-orbit.is-running::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(61, 207, 142, 0.12);
  pointer-events: none;
  animation: timerGlow 2s ease-in-out infinite;
}
.timer-orbit.is-done .timer-progress {
  stroke: var(--accent);
  filter: drop-shadow(0 0 10px rgba(61, 207, 142, 0.45));
}
.timer-ring {
  position: relative;
  z-index: 1;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 2.2rem;
  font-weight: 800;
  background: #101612;
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}
@keyframes timerGlow {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

/* Daily tasks — premium cards */
.task-empty {
  text-align: center;
  padding: 2rem 1.2rem;
  border-radius: 22px;
  background: linear-gradient(165deg, rgba(26, 36, 32, 0.95), rgba(14, 18, 16, 0.98));
  border: 1px solid var(--line);
}
.task-empty-icon {
  width: 72px; height: 72px; margin: 0 auto 1rem;
  border-radius: 20px;
  display: grid; place-items: center;
  color: var(--accent);
  background: rgba(61, 207, 142, 0.1);
  border: 1px solid rgba(61, 207, 142, 0.2);
}
.task-empty h2 { margin-bottom: 0.35rem; }

.task-stack { display: grid; gap: 0.75rem; }
.task-pro {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.95rem 1rem;
  border-radius: 20px;
  background: linear-gradient(165deg, rgba(28, 38, 34, 0.96), rgba(14, 18, 16, 0.98));
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
  animation: rise 0.4s ease both;
  position: relative;
  overflow: hidden;
}
.task-pro::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  opacity: 0.85;
}
.task-pro.is-done {
  opacity: 0.78;
}
.task-pro.is-done::before {
  background: rgba(61, 207, 142, 0.35);
}
.task-pro-icon {
  position: relative;
  width: 48px; height: 48px;
  border-radius: 16px;
  display: grid; place-items: center;
  color: var(--accent);
  background: rgba(61, 207, 142, 0.1);
  border: 1px solid rgba(61, 207, 142, 0.2);
}
.task-pro.is-done .task-pro-icon {
  color: var(--ok);
  background: rgba(61, 207, 142, 0.16);
}
.task-num {
  position: absolute;
  right: -4px; bottom: -4px;
  min-width: 18px; height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  font-size: 0.62rem; font-weight: 700;
  display: grid; place-items: center;
  background: #0c1210;
  border: 1px solid var(--line);
  color: var(--muted);
}
.task-pro-body { min-width: 0; }
.task-pro-top {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem;
}
.task-pro-top h3 {
  font-size: 0.98rem;
  margin: 0;
  line-height: 1.3;
}
.task-desc {
  margin: 0.25rem 0 0.55rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}
.task-status {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.task-status.open {
  color: var(--accent-2);
  border-color: rgba(232, 194, 122, 0.35);
  background: rgba(232, 194, 122, 0.08);
}
.task-status.done {
  color: var(--ok);
  border-color: rgba(61, 207, 142, 0.35);
  background: rgba(61, 207, 142, 0.1);
}
.task-meta-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.task-chip {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem; font-weight: 600;
  color: var(--muted);
  background: rgba(0,0,0,0.22);
  border: 1px solid var(--line);
}
.task-chip.reward { color: var(--accent); border-color: rgba(61,207,142,0.25); }
.task-pro-cta { display: grid; place-items: center; }
.task-start {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding-inline: 0.9rem;
}
.task-check {
  width: 36px; height: 36px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-weight: 800;
  color: #fff;
  background: var(--accent);
}

.task-run { padding-bottom: 0.5rem; }
.task-back {
  display: inline-flex; align-items: center; gap: 0.25rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  margin-bottom: 0.85rem;
}
.task-run-card {
  padding: 1.2rem 1.15rem 1.25rem;
  border-radius: 24px;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(61,207,142,0.14), transparent 55%),
    linear-gradient(165deg, #1a2a22, #101612);
  border: 1px solid rgba(61, 207, 142, 0.2);
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
  animation: rise 0.4s ease both;
}
.task-run-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(61, 207, 142, 0.1);
  border: 1px solid rgba(61, 207, 142, 0.22);
  margin-bottom: 0.85rem;
}
.task-run-card h1 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}
.task-run-stats {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0 0.25rem;
  padding: 0.85rem 0.7rem;
  border-radius: 16px;
  background: rgba(0,0,0,0.22);
  border: 1px solid var(--line);
  text-align: center;
}
.task-run-stats .muted {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.15rem;
}
.task-yield-divider {
  width: 1px; height: 28px; background: var(--line);
}
.task-run-card .btn {
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.task-stack .task-pro:nth-child(1) { animation-delay: 0.04s; }
.task-stack .task-pro:nth-child(2) { animation-delay: 0.08s; }
.task-stack .task-pro:nth-child(3) { animation-delay: 0.12s; }
.task-stack .task-pro:nth-child(4) { animation-delay: 0.16s; }
.task-stack .task-pro:nth-child(5) { animation-delay: 0.2s; }
.task-stack .task-pro:nth-child(6) { animation-delay: 0.24s; }

.bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.4rem;
  align-items: end;
  height: 140px;
  padding: 0.5rem 0;
}
.bar-col { display: grid; align-content: end; justify-items: center; height: 100%; gap: 0.35rem; }
.bar {
  width: 100%; max-width: 28px;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, var(--accent), #1f6b4a);
}
.bar-col span { font-size: 0.68rem; color: var(--muted); }

/* —— Referral —— */
.rf-hero {
  position: relative;
  overflow: hidden;
  padding: 1.3rem 1.15rem 1.15rem;
  margin-bottom: 0.85rem;
  border-radius: 24px;
  background: linear-gradient(165deg, #1c2a22 0%, #101814 55%, #0c1210 100%);
  border: 1px solid rgba(232, 194, 122, 0.28);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  animation: rise 0.45s ease both;
}
.rf-hero-glow {
  position: absolute;
  width: 240px; height: 240px;
  right: -70px; top: -90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 194, 122, 0.2), transparent 68%);
  pointer-events: none;
}
.rf-hero-label {
  margin: 0.35rem 0 0.1rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.rf-hero-balance {
  font-family: var(--display);
  font-size: clamp(2.1rem, 9vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 0.35rem;
  background: linear-gradient(120deg, #fff 10%, var(--accent-2) 60%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.rf-hero-sub { margin: 0 0 1rem; font-size: 0.84rem; }
.rf-hero-sub .ink { color: var(--ink); font-weight: 700; }
.rf-hero-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  position: relative;
  z-index: 1;
}
.rf-pill {
  padding: 0.65rem 0.45rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
  text-align: center;
}
.rf-pill .muted {
  display: block;
  font-size: 0.66rem;
  margin-bottom: 0.18rem;
}
.rf-pill strong {
  font-size: 0.95rem;
  font-family: var(--display);
}

.rf-share {
  position: relative;
  overflow: hidden;
  margin-bottom: 0.9rem;
  padding: 1.15rem 1.05rem 1.2rem;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(232, 194, 122, 0.08), transparent 30%),
    linear-gradient(165deg, #1c281f 0%, #121a16 100%);
  border: 1px solid rgba(232, 194, 122, 0.28);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  animation: rise 0.4s ease both;
}
.rf-share-glow {
  position: absolute;
  width: 180px; height: 180px;
  left: -50px; bottom: -70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 207, 142, 0.12), transparent 70%);
  pointer-events: none;
}
.rf-share-head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.05rem;
  position: relative;
  z-index: 1;
}
.rf-share-head h2 { margin: 0 0 0.2rem; font-size: 1.2rem; }
.rf-share-head .muted { margin: 0; font-size: 0.84rem; line-height: 1.35; }
.rf-share-ico {
  width: 46px; height: 46px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--accent-2);
  background: rgba(232, 194, 122, 0.12);
  border: 1px solid rgba(232, 194, 122, 0.28);
}
.rf-field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
  position: relative;
  z-index: 1;
}
.rf-label {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}
.rf-code-row,
.rf-link-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.6rem 0.55rem 0.85rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid var(--line);
}
.rf-code-row code {
  flex: 1;
  min-width: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-2);
}
.rf-link-row input {
  flex: 1;
  min-width: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0.35rem 0;
  font-size: 0.78rem;
  color: var(--ink);
}
.rf-copy {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(61, 207, 142, 0.3);
  background: rgba(61, 207, 142, 0.12);
  color: var(--accent);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.rf-copy:hover { background: rgba(61, 207, 142, 0.2); }
.rf-copy:active { transform: scale(0.96); }
.rf-share-actions {
  display: grid;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}
.rf-primary {
  min-height: 2.85rem;
  border-color: rgba(232, 194, 122, 0.45) !important;
  background: linear-gradient(135deg, #c9a45a, #e8c27a) !important;
  color: #1a1408 !important;
  box-shadow: 0 10px 28px rgba(232, 194, 122, 0.22);
}

.rf-steps {
  margin-bottom: 0.9rem;
  padding: 1.05rem 1rem;
  border-radius: 20px;
  background: rgba(20, 28, 24, 0.9);
  border: 1px solid var(--line);
  animation: rise 0.4s ease both;
}
.rf-steps h2 {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
}
.rf-step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.rf-step-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: flex-start;
}
.rf-step-n {
  width: 28px; height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent-2);
  background: rgba(232, 194, 122, 0.12);
  border: 1px solid rgba(232, 194, 122, 0.28);
}
.rf-step-list strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 0.12rem;
}
.rf-step-list .muted {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.35;
}

.rf-card {
  margin-bottom: 0.9rem;
  padding: 1.1rem 1.05rem 1.15rem;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(61, 207, 142, 0.04), transparent 26%),
    linear-gradient(165deg, #1a2420 0%, #111814 100%);
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  animation: rise 0.4s ease both;
}
.rf-card-head {
  margin-bottom: 0.95rem;
}
.rf-card-head h2 {
  margin: 0 0 0.15rem;
  font-size: 1.1rem;
}
.rf-card-head .muted {
  margin: 0;
  font-size: 0.8rem;
}

.rf-people,
.rf-earn-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.rf-person,
.rf-earn {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.8rem 0.85rem;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
}
.rf-avatar {
  width: 40px; height: 40px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--accent);
  background: linear-gradient(145deg, #234236, #163028);
  border: 1px solid rgba(61, 207, 142, 0.25);
}
.rf-person-body,
.rf-earn-body { min-width: 0; }
.rf-person-body strong,
.rf-earn-body strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rf-person-body .muted,
.rf-earn-body .muted {
  display: block;
  font-size: 0.7rem;
}
.rf-status {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.rf-status.ok {
  color: var(--ok);
  border-color: rgba(61, 207, 142, 0.35);
  background: rgba(61, 207, 142, 0.08);
}
.rf-earn-ico {
  width: 36px; height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: var(--accent-2);
  background: rgba(232, 194, 122, 0.1);
  border: 1px solid rgba(232, 194, 122, 0.22);
}
.rf-empty {
  text-align: center;
  padding: 1.5rem 0.75rem 0.6rem;
}
.rf-empty.compact { padding: 0.85rem 0.5rem 0.25rem; }
.rf-empty-ico {
  width: 56px; height: 56px;
  margin: 0 auto 0.75rem;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: var(--accent-2);
  background: rgba(232, 194, 122, 0.1);
  border: 1px solid rgba(232, 194, 122, 0.25);
}
.rf-empty strong {
  display: block;
  margin-bottom: 0.3rem;
}
.rf-empty .muted {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.4;
}

/* —— Manager portal (user app) —— */
.mgr-hero {
  margin: 0 0 0.85rem;
  padding: 0.15rem 0.1rem 0.35rem;
}
.mgr-back {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}
.mgr-back:hover { color: var(--ink); }
.mgr-hero .eyebrow { margin-bottom: 0.35rem; }
.mgr-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin: 0 0 0.35rem;
}
.mgr-hero h1 {
  margin: 0;
  font-family: Syne, sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  min-width: 0;
}
.mgr-title-row .mgr-tier {
  flex-shrink: 0;
}
.mgr-hero-sub {
  margin: 0 0 0.85rem;
  font-size: 0.86rem;
  line-height: 1.4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}
.mgr-tier-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}
.mgr-tier {
  --mgr-tier-fg: #f3e0c4;
  --mgr-tier-bg1: #3a2a18;
  --mgr-tier-bg2: #1c160f;
  --mgr-tier-line: rgba(205, 149, 84, 0.45);
  --mgr-tier-glow: rgba(205, 149, 84, 0.22);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.72rem 0.28rem 0.38rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mgr-tier-fg);
  background:
    linear-gradient(145deg, var(--mgr-tier-bg1), var(--mgr-tier-bg2));
  border: 1px solid var(--mgr-tier-line);
  box-shadow:
    0 0 0 3px var(--mgr-tier-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.mgr-tier-ico {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #0c1210;
  background: linear-gradient(145deg, #e8c27a, #c9954a);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
.mgr-tier-ico svg {
  display: block;
}
.mgr-tier-label {
  line-height: 1;
  padding-right: 0.1rem;
}
.mgr-tier--bronze {
  --mgr-tier-fg: #f5d9b0;
  --mgr-tier-bg1: #3d2a16;
  --mgr-tier-bg2: #1a130c;
  --mgr-tier-line: rgba(205, 127, 50, 0.5);
  --mgr-tier-glow: rgba(205, 127, 50, 0.18);
}
.mgr-tier--bronze .mgr-tier-ico {
  background: linear-gradient(145deg, #e0a86a, #cd7f32);
}
.mgr-tier--silver {
  --mgr-tier-fg: #eef2f6;
  --mgr-tier-bg1: #3a424c;
  --mgr-tier-bg2: #1a1f26;
  --mgr-tier-line: rgba(192, 200, 210, 0.45);
  --mgr-tier-glow: rgba(180, 190, 205, 0.16);
}
.mgr-tier--silver .mgr-tier-ico {
  background: linear-gradient(145deg, #f4f6f8, #a8b0bc);
}
.mgr-tier--gold {
  --mgr-tier-fg: #fff3c4;
  --mgr-tier-bg1: #4a3a12;
  --mgr-tier-bg2: #221a08;
  --mgr-tier-line: rgba(255, 215, 0, 0.45);
  --mgr-tier-glow: rgba(255, 200, 60, 0.2);
}
.mgr-tier--gold .mgr-tier-ico {
  background: linear-gradient(145deg, #ffe566, #ffd700 45%, #d4a017);
}
.mgr-tier--platinum {
  --mgr-tier-fg: #f2f5f8;
  --mgr-tier-bg1: #3d4550;
  --mgr-tier-bg2: #171b22;
  --mgr-tier-line: rgba(180, 210, 230, 0.5);
  --mgr-tier-glow: rgba(140, 190, 220, 0.2);
}
.mgr-tier--platinum .mgr-tier-ico {
  background: linear-gradient(145deg, #ffffff, #c5d4e0 55%, #8fa8bc);
}
.mgr-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(143, 163, 153, 0.28);
  color: rgba(200, 214, 206, 0.88);
  background: rgba(0, 0, 0, 0.28);
}
.mgr-actions,
.mgr-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.mgr-pill {
  flex: 1 1 6.5rem;
  min-width: 0;
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
}
.mgr-pill .muted {
  display: block;
  font-size: 0.68rem;
  margin-bottom: 0.15rem;
}
.mgr-pill strong {
  font-size: 1.05rem;
  font-weight: 800;
}
.mgr-export { margin-top: 0.55rem; }
.mgr-add-form { gap: 0.85rem; }
.mgr-add-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}
.mgr-add-form input {
  width: 100%;
  min-height: 2.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  color: var(--ink);
  font: inherit;
  font-weight: 500;
}
.mgr-add-note {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
}
.mgr-add-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
  margin-top: 0.35rem;
}
.mgr-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}
.mgr-metric {
  padding: 0.85rem 0.9rem;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
  min-width: 0;
}
.mgr-metric--accent {
  border-color: rgba(61, 207, 142, 0.28);
  background: linear-gradient(160deg, rgba(61, 207, 142, 0.12), rgba(0, 0, 0, 0.22));
}
.mgr-metric .muted {
  display: block;
  font-size: 0.68rem;
  margin-bottom: 0.2rem;
}
.mgr-metric strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mgr-metric small.muted {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.68rem;
}
.mgr-card { margin-bottom: 0.85rem; }
.mgr-earn-label {
  margin: 0 0 0.15rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}
.mgr-earn-balance {
  margin: 0 0 0.2rem !important;
  font-family: Syne, sans-serif;
  font-size: 1.85rem !important;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
}
.mgr-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.85rem;
  padding: 0.85rem 0.95rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
}
.mgr-banner.is-ok {
  border-color: rgba(61, 207, 142, 0.35);
  background: linear-gradient(145deg, rgba(61, 207, 142, 0.12), rgba(0, 0, 0, 0.2));
}
.mgr-banner.is-wait {
  border-color: rgba(232, 194, 122, 0.32);
  background: linear-gradient(145deg, rgba(232, 194, 122, 0.1), rgba(0, 0, 0, 0.2));
}
.mgr-banner-text {
  min-width: 0;
  flex: 1 1 12rem;
}
.mgr-banner-text strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 0.15rem;
}
.mgr-banner-text .muted {
  display: block;
  font-size: 0.78rem;
  line-height: 1.35;
}
.mgr-banner-side {
  text-align: right;
  flex: 0 0 auto;
}
.mgr-banner-side .muted {
  display: block;
  font-size: 0.68rem;
}
.mgr-banner-side strong {
  display: block;
  font-size: 0.95rem;
  color: var(--accent);
}
.mgr-banner-side small.muted {
  font-size: 0.68rem;
}
.mgr-progress { margin-top: 0.15rem; }
.mgr-progress-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(238, 243, 239, 0.08);
  overflow: hidden;
  border: 1px solid var(--line);
}
.mgr-progress-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2aa86f, var(--accent));
  min-width: 0;
  transition: width 0.35s ease;
}
.mgr-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.45rem;
  font-size: 0.72rem;
}
.mgr-tier-legend {
  margin: 0.55rem 0 0;
  font-size: 0.7rem;
  line-height: 1.35;
}
.mgr-team-tools {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}
.mgr-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.mgr-filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
}
.mgr-filter-chip.is-on {
  color: #0c1210;
  border-color: rgba(61, 207, 142, 0.45);
  background: linear-gradient(135deg, #4adf9b, var(--accent));
}
.mgr-search input {
  width: 100%;
  margin: 0;
}
.mgr-team-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .rf-hero, .rf-share, .rf-steps, .rf-card { animation: none !important; }
  .mgr-progress-bar > span { transition: none; }
}

/* —— Stats / Earnings —— */
.st-hero {
  position: relative;
  overflow: hidden;
  padding: 1.3rem 1.15rem 1.15rem;
  margin-bottom: 0.85rem;
  border-radius: 24px;
  background: linear-gradient(165deg, #1a2c24 0%, #101814 55%, #0c1210 100%);
  border: 1px solid rgba(61, 207, 142, 0.22);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  animation: rise 0.45s ease both;
}
.st-hero-glow {
  position: absolute;
  width: 240px; height: 240px;
  right: -70px; top: -90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 207, 142, 0.2), transparent 68%);
  pointer-events: none;
}
.st-hero-label {
  margin: 0.35rem 0 0.1rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.st-hero-balance {
  font-family: var(--display);
  font-size: clamp(2.1rem, 9vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 0.35rem;
  background: linear-gradient(120deg, #fff 15%, var(--accent) 70%, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.st-hero-sub { margin: 0 0 1rem; font-size: 0.82rem; }
.st-hero-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  position: relative;
  z-index: 1;
}
.st-pill {
  padding: 0.65rem 0.45rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
  text-align: center;
}
.st-pill .muted {
  display: block;
  font-size: 0.66rem;
  margin-bottom: 0.18rem;
}
.st-pill strong {
  font-size: 0.88rem;
  font-family: var(--display);
}

.st-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}
.st-kpi {
  display: grid;
  gap: 0.2rem;
  padding: 0.95rem;
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(28, 38, 34, 0.96), rgba(14, 18, 16, 0.98));
  border: 1px solid var(--line);
  animation: rise 0.4s ease both;
}
.st-kpi .muted { font-size: 0.72rem; }
.st-kpi strong {
  font-size: 1.1rem;
  font-family: var(--display);
}
.st-kpi-ico {
  width: 34px; height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  margin-bottom: 0.2rem;
  color: var(--accent);
  background: rgba(61, 207, 142, 0.1);
  border: 1px solid rgba(61, 207, 142, 0.2);
}
.st-kpi.gold .st-kpi-ico {
  color: var(--accent-2);
  background: rgba(232, 194, 122, 0.1);
  border-color: rgba(232, 194, 122, 0.22);
}

.st-card {
  position: relative;
  margin-bottom: 0.9rem;
  padding: 1.1rem 1.05rem 1.15rem;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(61, 207, 142, 0.05), transparent 28%),
    linear-gradient(165deg, #1a2420 0%, #111814 100%);
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
  animation: rise 0.4s ease both;
}
.st-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.st-card-head h2 {
  margin: 0 0 0.15rem;
  font-size: 1.1rem;
}
.st-card-head .muted {
  margin: 0;
  font-size: 0.8rem;
}
.st-chip {
  flex-shrink: 0;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(61, 207, 142, 0.1);
  border: 1px solid rgba(61, 207, 142, 0.25);
}

.st-chart {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35rem;
  align-items: end;
  min-height: 168px;
}
.st-bar-col {
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  gap: 0.3rem;
  height: 168px;
}
.st-bar-val {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--muted);
  min-height: 0.9rem;
}
.st-bar-track {
  width: 100%;
  max-width: 28px;
  height: 100%;
  display: flex;
  align-items: flex-end;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}
.st-bar {
  width: 100%;
  height: var(--h, 6%);
  border-radius: 10px 10px 4px 4px;
  background: linear-gradient(180deg, #5ee0a4, var(--accent) 45%, #1f6b4a);
  box-shadow: 0 0 16px rgba(61, 207, 142, 0.2);
  transform-origin: bottom;
  animation: stBarIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.st-bar-col.is-today .st-bar {
  background: linear-gradient(180deg, #f0d08a, var(--accent-2) 50%, #9a7a3a);
  box-shadow: 0 0 16px rgba(232, 194, 122, 0.25);
}
.st-bar-col.is-today .st-bar-day {
  color: var(--accent-2);
  font-weight: 700;
}
.st-bar-day {
  font-size: 0.68rem;
  color: var(--muted);
}
.st-bar-col:nth-child(1) .st-bar { animation-delay: 0.02s; }
.st-bar-col:nth-child(2) .st-bar { animation-delay: 0.05s; }
.st-bar-col:nth-child(3) .st-bar { animation-delay: 0.08s; }
.st-bar-col:nth-child(4) .st-bar { animation-delay: 0.11s; }
.st-bar-col:nth-child(5) .st-bar { animation-delay: 0.14s; }
.st-bar-col:nth-child(6) .st-bar { animation-delay: 0.17s; }
.st-bar-col:nth-child(7) .st-bar { animation-delay: 0.2s; }

@keyframes stBarIn {
  from { transform: scaleY(0.15); opacity: 0.4; }
  to { transform: none; opacity: 1; }
}

.st-sources {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.st-source {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
}
.st-source-ico {
  width: 36px; height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: rgba(61, 207, 142, 0.1);
  border: 1px solid rgba(61, 207, 142, 0.2);
}
.st-source.kind-refer .st-source-ico,
.st-source.kind-bonus .st-source-ico,
.st-source.kind-plan .st-source-ico {
  color: var(--accent-2);
  background: rgba(232, 194, 122, 0.1);
  border-color: rgba(232, 194, 122, 0.22);
}
.st-source-body { min-width: 0; }
.st-source-top {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}
.st-source-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin-bottom: 0.25rem;
}
.st-source-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #2aa86e);
}
.st-source.kind-refer .st-source-bar i,
.st-source.kind-bonus .st-source-bar i,
.st-source.kind-plan .st-source-bar i {
  background: linear-gradient(90deg, var(--accent-2), #c9a45a);
}
.st-source-pct { font-size: 0.7rem; }

.st-tx-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
a.st-tx.is-link {
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
a.st-tx.is-link:hover {
  border-color: rgba(61, 207, 142, 0.35);
}
.st-tx {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.8rem 0.85rem;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
}
.st-tx-ico {
  width: 36px; height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: rgba(61, 207, 142, 0.1);
  border: 1px solid rgba(61, 207, 142, 0.2);
}
.st-tx.kind-withdraw .st-tx-ico {
  color: var(--accent-2);
  background: rgba(232, 194, 122, 0.1);
  border-color: rgba(232, 194, 122, 0.22);
}
.st-tx-body { min-width: 0; }
.st-tx-body strong {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 0.1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.st-tx-more {
  display: flex;
  justify-content: center;
  padding: 0.85rem 0 0.25rem;
  min-height: 2rem;
}
.st-tx-more[hidden],
.st-tx-end[hidden] { display: none !important; }
.st-history.is-loading-more .st-tx-more .muted { opacity: 0.85; }
.st-tx-end {
  text-align: center;
  font-size: 0.78rem;
  margin: 0.65rem 0 0;
}
.st-tx-body .muted {
  display: block;
  font-size: 0.7rem;
}
.st-empty {
  text-align: center;
  padding: 1.4rem 0.5rem 0.4rem;
}
.st-empty .btn { margin-top: 0.75rem; }

@media (prefers-reduced-motion: reduce) {
  .st-hero, .st-kpi, .st-card, .st-bar { animation: none !important; }
}

/* —— Profile —— */
.pf-hero {
  position: relative;
  overflow: hidden;
  margin: 0 0 0.9rem;
  padding: 1.35rem 1.15rem 1.2rem;
  border-radius: 24px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(61, 207, 142, 0.1), transparent 42%),
    linear-gradient(165deg, #1a2a23 0%, #101714 100%);
  border: 1px solid rgba(61, 207, 142, 0.26);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  animation: rise 0.4s ease both;
}
.pf-hero .pf-edit-btn {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 3;
}
.pf-card-account,
.pf-card-security {
  padding-top: 1.15rem;
}
.pf-card-account .pf-card-head,
.pf-card-security .pf-card-head {
  padding-right: 5.5rem;
}
.pf-card-account .pf-edit-btn,
.pf-card-security .pf-edit-btn {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 3;
}
.pf-edit-btn {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 3;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(61, 207, 142, 0.28);
  background: rgba(12, 18, 16, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--accent);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.pf-edit-btn:hover {
  color: #fff;
  border-color: rgba(61, 207, 142, 0.5);
  background: rgba(61, 207, 142, 0.2);
  transform: translateY(-1px);
  text-decoration: none;
}
.pf-edit-page {
  display: grid;
  gap: 0.9rem;
  padding-bottom: 0.5rem;
}
.pf-edit-top {
  display: grid;
  gap: 0.75rem;
  padding: 0.15rem 0.15rem 0;
}
.pf-edit-back {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  width: fit-content;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
  padding: 0.35rem 0.45rem 0.35rem 0.2rem;
  border-radius: 10px;
  transition: color 0.18s ease, background 0.18s ease;
}
.pf-edit-back:hover {
  color: var(--accent);
  background: rgba(61, 207, 142, 0.08);
  text-decoration: none;
}
.pf-edit-top .page-title {
  margin: 0.1rem 0 0.2rem;
  font-size: clamp(1.35rem, 5vw, 1.7rem);
}
.pf-edit-sub {
  margin: 0;
  font-size: 0.86rem;
}
.pf-hero-glow {
  position: absolute;
  width: 220px; height: 220px;
  right: -80px; top: -100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 194, 122, 0.16), transparent 70%);
  pointer-events: none;
}
.pf-avatar {
  position: relative;
  z-index: 1;
  width: 64px; height: 64px;
  margin: 0 auto 0.75rem;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, #5ee0a4, var(--accent) 45%, #2aa86f);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 28px rgba(61, 207, 142, 0.3);
}
.pf-hero .eyebrow {
  position: relative;
  z-index: 1;
  color: var(--accent);
  font-weight: 700;
}
.pf-name {
  position: relative;
  z-index: 1;
  margin: 0.15rem 0 0.25rem;
  font-size: clamp(1.55rem, 6vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  background: linear-gradient(120deg, #fff 15%, var(--accent) 70%, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .pf-name {
    color: var(--ink);
    background: none;
    -webkit-text-fill-color: currentColor;
  }
}
.pf-email {
  position: relative;
  z-index: 1;
  margin: 0 0 1rem;
  font-size: 0.86rem;
  color: var(--muted);
}
.pf-hero-pills {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}
.pf-pill {
  padding: 0.55rem 0.45rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
  display: grid;
  gap: 0.15rem;
  justify-items: center;
  color: var(--ink);
}
.pf-pill .muted {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.pf-pill strong {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink);
}
.pf-pill-code {
  grid-column: 1 / -1;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 0.35rem;
  justify-items: start;
  text-align: left;
}
.pf-pill-code .muted { grid-column: 1 / -1; }
.pf-pill-code .pf-account-id,
.pf-pill-code #pf-account-id {
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
  white-space: nowrap;
  word-break: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.2;
}.pf-pill-code strong {
  font-size: 0.72rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pf-copy-mini {
  width: 28px; height: 28px;
  border: 0;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(61, 207, 142, 0.12);
  color: var(--accent);
  cursor: pointer;
}
.pf-copy-mini:hover { background: rgba(61, 207, 142, 0.2); }
.pf-status.is-active { color: var(--ok); }
.pf-status.is-banned,
.pf-status.is-inactive { color: var(--danger); }

.pf-quick {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  margin-bottom: 0.9rem;
  animation: rise 0.4s ease both;
  animation-delay: 0.04s;
}
.pf-quick-item {
  display: grid;
  gap: 0.35rem;
  justify-items: center;
  padding: 0.7rem 0.35rem;
  border-radius: 16px;
  background: rgba(20, 28, 24, 0.9);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 700;
}
.pf-quick-item:hover {
  border-color: rgba(61, 207, 142, 0.35);
  color: var(--ink);
  text-decoration: none;
}
.pf-quick-ico {
  width: 34px; height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: rgba(61, 207, 142, 0.1);
  border: 1px solid rgba(61, 207, 142, 0.2);
}

.pf-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 0.9rem;
  padding: 1.15rem 1.05rem 1.15rem;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(61, 207, 142, 0.05), transparent 28%),
    linear-gradient(165deg, #1a2420 0%, #111814 100%);
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  animation: rise 0.4s ease both;
}
.pf-card-glow {
  position: absolute;
  width: 160px; height: 160px;
  right: -50px; top: -70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 207, 142, 0.12), transparent 70%);
  pointer-events: none;
}
.pf-card-glow.gold {
  background: radial-gradient(circle, rgba(232, 194, 122, 0.14), transparent 70%);
}
.pf-card-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.pf-card-head.row {
  justify-content: space-between;
  align-items: flex-start;
}
.pf-card-head-text {
  flex: 1;
  min-width: 0;
}
.pf-view {
  position: relative;
  z-index: 1;
  margin: 0;
  display: grid;
  gap: 0.85rem;
}
.pf-view[hidden],
.pf-form[hidden] { display: none !important; }
.pf-view-group {
  border: 1px solid rgba(238, 243, 239, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(165deg, rgba(26, 36, 32, 0.55), rgba(10, 14, 12, 0.72));
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.pf-view-group-label {
  margin: 0;
  padding: 0.65rem 1rem 0.45rem;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(143, 163, 153, 0.85);
}
.pf-view-list {
  margin: 0;
  display: grid;
  gap: 0;
}
.pf-view-row {
  display: grid;
  gap: 0.28rem;
  padding: 0.85rem 1rem;
  border-top: 1px solid rgba(238, 243, 239, 0.055);
}
.pf-view-row:first-child { border-top: 0; }
.pf-view-row dt {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pf-view-ico {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: rgba(61, 207, 142, 0.1);
  border: 1px solid rgba(61, 207, 142, 0.18);
  flex-shrink: 0;
}
.pf-view-row dd {
  margin: 0;
  padding-left: 0;
  font-size: 0.98rem;
  font-weight: 650;
  color: var(--ink);
  word-break: break-word;
  line-height: 1.4;
  letter-spacing: -0.015em;
}
.pf-view-row:has(.pf-view-ico) dd {
  padding-left: calc(22px + 0.4rem);
}
.pf-view-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.pf-view-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.pf-view-link:hover {
  color: var(--accent);
  border-bottom-color: rgba(61, 207, 142, 0.45);
}
.pf-view-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-top: 1px solid rgba(238, 243, 239, 0.055);
}
.pf-view-row-2 > div {
  display: grid;
  gap: 0.28rem;
  min-width: 0;
}
.pf-view-row-2 dt {
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}
.pf-view-row-2 dd {
  padding-left: 0;
}
.pf-view-row-stack dd {
  padding-left: calc(22px + 0.4rem);
  font-weight: 600;
  line-height: 1.45;
  text-transform: none;
}
.pf-form-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin-top: 0.45rem;
  position: relative;
  z-index: 2;
  width: 100%;
  min-width: 0;
}
.pf-form-actions .btn {
  width: 100%;
  min-width: 0;
  min-height: 2.9rem;
  white-space: normal;
  line-height: 1.25;
  text-align: center;
  padding-left: 0.9rem;
  padding-right: 0.9rem;
}
.pf-form-actions .pf-submit {
  margin-top: 0;
  order: -1; /* primary action first on mobile */
}
@media (min-width: 560px) {
  .pf-form-actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    align-items: stretch;
  }
  .pf-form-actions .pf-submit {
    order: 0;
  }
}
.pf-submit {
  min-height: 2.9rem;
  margin-top: 0.15rem;
  font-weight: 700;
  border-radius: 14px;
  border-color: transparent;
  background: linear-gradient(145deg, #5ee0a4 0%, var(--accent) 45%, #2aa86f 100%);
  box-shadow: 0 10px 24px rgba(61, 207, 142, 0.24);
}
.pf-edit-page .pf-card {
  overflow: visible;
}
.pf-card-head h2 {
  margin: 0 0 0.15rem;
  font-size: 1.1rem;
}
.pf-card-head .muted {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.35;
}
.pf-card-ico {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: rgba(61, 207, 142, 0.1);
  border: 1px solid rgba(61, 207, 142, 0.22);
}
.pf-card-ico.gold {
  color: var(--accent-2);
  background: rgba(232, 194, 122, 0.1);
  border-color: rgba(232, 194, 122, 0.24);
}
.pf-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}
.pf-form { position: relative; z-index: 1; margin-top: 0; gap: 0.85rem; }
.pf-field {
  display: grid;
  gap: 0.4rem;
  font-size: 0.86rem;
  color: var(--muted);
}
.pf-label {
  font-weight: 500;
  line-height: 1.2;
}
.pf-input {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.5rem 0.15rem 0.7rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid var(--line);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.pf-input:focus-within {
  border-color: rgba(61, 207, 142, 0.65);
  box-shadow: 0 0 0 3px rgba(61, 207, 142, 0.18);
}
.pf-input.is-locked {
  opacity: 0.72;
}
.pf-input.is-locked:focus-within { box-shadow: none; border-color: var(--line); }
.pf-input-ico {
  display: grid;
  place-items: center;
  color: var(--muted);
  flex-shrink: 0;
}
.pf-input:focus-within .pf-input-ico { color: var(--accent); }
.pf-input input {
  flex: 1;
  min-width: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0.8rem 0.25rem;
  color: var(--ink);
  font: inherit;
}
.pf-input input:disabled {
  color: var(--ink);
  opacity: 1;
  cursor: not-allowed;
}
.pf-input input::placeholder { color: rgba(238, 243, 239, 0.28); }
.pf-eye {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.pf-eye:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }

.pf-tx-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.pf-tx {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.8rem 0.85rem;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
}
a.pf-tx.is-link {
  color: inherit;
  text-decoration: none;
}
a.pf-tx.is-link:hover {
  border-color: rgba(61, 207, 142, 0.35);
}
.pf-tx-ico {
  width: 36px; height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: rgba(61, 207, 142, 0.1);
  border: 1px solid rgba(61, 207, 142, 0.2);
}
.pf-tx.kind-withdraw .pf-tx-ico {
  color: var(--accent-2);
  background: rgba(232, 194, 122, 0.1);
  border-color: rgba(232, 194, 122, 0.22);
}
.pf-tx-body { min-width: 0; }
.pf-tx-body strong {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 0.1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pf-tx-body .muted {
  display: block;
  font-size: 0.7rem;
}
.pf-empty {
  text-align: center;
  padding: 0.85rem 0.35rem 0.25rem;
}
.pf-empty .btn { margin-top: 0.75rem; }

.pf-logout {
  margin: 0.35rem 0 0.5rem;
  animation: rise 0.4s ease both;
}
.pf-logout-btn {
  display: inline-flex;
  gap: 0.45rem;
  min-height: 2.85rem;
  border-radius: 14px;
  color: #ffb4ae;
  border-color: rgba(255, 123, 114, 0.28);
  background: rgba(255, 123, 114, 0.06);
}
.pf-logout-btn:hover {
  filter: brightness(1.08);
  background: rgba(255, 123, 114, 0.1);
}

@media (prefers-reduced-motion: reduce) {
  .pf-hero, .pf-quick, .pf-card, .pf-logout { animation: none !important; }
}

/* Profile KYC */
.pf-kyc-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 1rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--muted);
}
.pf-kyc-badge.is-approved {
  color: #fff;
  background: linear-gradient(145deg, #5ee0a4, var(--accent));
  border-color: transparent;
}
.pf-kyc-badge.is-pending {
  color: var(--accent-2);
  background: rgba(232, 194, 122, 0.12);
  border-color: rgba(232, 194, 122, 0.3);
}
.pf-kyc-badge.is-none {
  color: var(--accent-2);
  background: rgba(232, 194, 122, 0.12);
  border-color: rgba(232, 194, 122, 0.3);
}
.pf-kyc-state.is-blocked .pf-kyc-goto {
  margin-top: 0.75rem;
  display: inline-flex;
}
.kyc-profile-summary {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.15rem;
  margin-bottom: 0.85rem;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  background: rgba(61, 207, 142, 0.08);
  border: 1px solid rgba(61, 207, 142, 0.22);
}
.kyc-profile-summary .muted {
  margin: 0;
  font-size: 0.74rem;
}
.kyc-profile-summary strong {
  font-size: 0.95rem;
}
.pf-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
.pf-input-area {
  align-items: flex-start;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}
.pf-input-area .pf-input-ico {
  margin-top: 0.35rem;
}
.pf-input textarea {
  flex: 1;
  min-width: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0.35rem 0.25rem;
  color: var(--ink);
  font: inherit;
  resize: vertical;
  min-height: 4.5rem;
  line-height: 1.4;
}
.pf-input textarea::placeholder { color: rgba(238, 243, 239, 0.28); }

/* Custom animated date wheel */
.en-date {
  position: relative;
  z-index: 2;
}
.en-date-store {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.en-date-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.55rem 0.55rem 0.7rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid var(--line);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.18s ease;
}
.en-date-trigger:hover {
  border-color: rgba(61, 207, 142, 0.35);
}
.en-date.is-open .en-date-trigger,
.en-date-trigger:focus-visible {
  outline: none;
  border-color: rgba(61, 207, 142, 0.65);
  box-shadow: 0 0 0 3px rgba(61, 207, 142, 0.18);
}
.en-date-trigger .pf-input-ico { color: var(--muted); transition: color 0.2s ease; }
.en-date.is-open .en-date-trigger .pf-input-ico,
.en-date-trigger:focus-visible .pf-input-ico { color: var(--accent); }
.en-date-label {
  flex: 1;
  min-width: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.en-date-label.is-empty {
  color: rgba(238, 243, 239, 0.34);
  font-weight: 500;
}
.en-date-pill {
  flex-shrink: 0;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(145deg, #5ee0a4, var(--accent) 55%, #2aa86f);
  animation: enDatePillIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.en-date-pill[hidden] { display: none !important; }
.en-date-chev {
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), color 0.2s ease;
}
.en-date.is-open .en-date-chev {
  transform: rotate(180deg);
  color: var(--accent);
}
.en-date-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.55rem);
  z-index: 40;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(61, 207, 142, 0.22);
  background:
    radial-gradient(90% 70% at 10% 0%, rgba(61, 207, 142, 0.14), transparent 55%),
    linear-gradient(165deg, #1a2420, #0f1412 70%);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
  transform-origin: top center;
}
.en-date-panel[hidden] { display: none !important; }
.en-date-panel.is-open {
  display: block !important;
  animation: enDatePopIn 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.en-date-panel.is-leaving {
  display: block !important;
  animation: enDatePopOut 0.2s ease both;
}
.en-date-panel-glow {
  position: absolute;
  inset: auto -20% -40% -20%;
  height: 55%;
  background: radial-gradient(circle at 50% 0%, rgba(61, 207, 142, 0.18), transparent 65%);
  pointer-events: none;
}
.en-date-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1rem 0.55rem;
}
.en-date-eyebrow {
  margin: 0;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 750;
  color: var(--muted);
}
.en-date-preview {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #fff 15%, var(--accent) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.en-date-close {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(238, 243, 239, 0.1);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.en-date-close:hover {
  color: var(--ink);
  border-color: rgba(238, 243, 239, 0.2);
}
.en-date-wheels {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.7fr 0.95fr;
  gap: 0.15rem;
  height: 196px;
  margin: 0.35rem 0.65rem 0.55rem;
  background: rgba(0, 0, 0, 0.22);
  border-radius: 14px;
  overflow: hidden;
  mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
}
.en-date-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(12, 16, 14, 0.95), transparent 30%),
    linear-gradient(0deg, rgba(12, 16, 14, 0.95), transparent 30%);
  z-index: 2;
}
.en-date-center {
  position: absolute;
  left: 0.35rem;
  right: 0.35rem;
  top: 50%;
  height: 40px;
  margin-top: -20px;
  border-radius: 12px;
  border: 1px solid rgba(61, 207, 142, 0.32);
  background: rgba(61, 207, 142, 0.12);
  box-shadow: inset 0 0 0 1px rgba(61, 207, 142, 0.08);
  pointer-events: none;
  z-index: 1;
  animation: enDatePulse 2.4s ease-in-out infinite;
}
.en-date-col {
  position: relative;
  z-index: 3;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  height: 100%;
  background: transparent;
  touch-action: none;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  -webkit-user-select: none;
  user-select: none;
}
.en-date-col.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}
.en-date-col::-webkit-scrollbar { display: none; }
.en-date-track {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 78px 0;
  background: transparent;
}
.en-date-item {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  padding: 0 0.2rem;
  margin: 0;
  scroll-snap-align: center;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1;
  text-align: center;
  color: rgba(238, 243, 239, 0.45);
  background: transparent;
  border: 0;
  box-shadow: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  transition: color 0.18s ease, font-size 0.18s ease, font-weight 0.18s ease;
  user-select: none;
  cursor: pointer;
}
.en-date-item:hover {
  color: rgba(238, 243, 239, 0.78);
}
.en-date-item.is-active {
  color: #eef3ef;
  transform: none;
  font-size: 0.98rem;
  font-weight: 780;
  font-family: var(--display);
  letter-spacing: -0.02em;
}
.en-date-actions {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 0.55rem;
  padding: 0.55rem 0.85rem 0.95rem;
}
.en-date-done { width: 100%; }
.en-date.is-shake .en-date-trigger {
  animation: enDateShake 0.42s ease;
}
@keyframes enDatePopIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes enDatePopOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(-6px) scale(0.97); }
}
@keyframes enDatePillIn {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes enDatePulse {
  0%, 100% { box-shadow: inset 0 0 0 1px rgba(61, 207, 142, 0.08), 0 0 0 0 rgba(61, 207, 142, 0); }
  50% { box-shadow: inset 0 0 0 1px rgba(61, 207, 142, 0.14), 0 0 18px rgba(61, 207, 142, 0.12); }
}
@keyframes enDateShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}

.pf-email { margin-bottom: 0.65rem !important; }
.pf-kyc-state {
  position: relative;
  z-index: 1;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
  margin-bottom: 0.85rem;
}
.pf-kyc-state strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.95rem;
}
.pf-kyc-state .muted { margin: 0; font-size: 0.82rem; line-height: 1.4; }
.pf-kyc-meta { margin-top: 0.45rem !important; font-size: 0.78rem !important; }
.pf-kyc-state.is-approved {
  border-color: rgba(61, 207, 142, 0.3);
  background: rgba(61, 207, 142, 0.08);
}
.pf-kyc-state.is-pending {
  border-color: rgba(232, 194, 122, 0.28);
  background: rgba(232, 194, 122, 0.08);
}
.pf-kyc-state.is-rejected {
  border-color: rgba(255, 123, 114, 0.28);
  background: rgba(255, 123, 114, 0.08);
}
.pf-input select {
  flex: 1;
  min-width: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0.8rem 0.25rem;
  color: var(--ink);
  font: inherit;
  appearance: none;
  cursor: pointer;
}
.pf-file {
  display: block;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.34);
  border: 1px dashed rgba(61, 207, 142, 0.35);
}
.pf-file input[type="file"] {
  width: 100%;
  font: inherit;
  font-size: 0.82rem;
  color: var(--muted);
}
.pf-kyc-hint {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
}

/* KYC form */
.kyc-form {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
}
.kyc-block {
  display: grid;
  gap: 0.7rem;
  padding: 0.95rem 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
}
.kyc-step {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.kyc-step span {
  width: 22px; height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, #5ee0a4, var(--accent));
  letter-spacing: 0;
  text-transform: none;
}
.kyc-types {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}
.kyc-type {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  background: rgba(20, 28, 24, 0.85);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.kyc-type input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.kyc-type-ico {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.kyc-type-label {
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--ink);
}
.kyc-type:hover {
  border-color: rgba(61, 207, 142, 0.35);
}
.kyc-type.is-on,
.kyc-type:has(input:checked) {
  border-color: rgba(61, 207, 142, 0.55);
  background: rgba(61, 207, 142, 0.1);
  box-shadow: 0 0 0 3px rgba(61, 207, 142, 0.12);
}
.kyc-type.is-on .kyc-type-ico,
.kyc-type:has(input:checked) .kyc-type-ico {
  color: var(--accent);
  background: rgba(61, 207, 142, 0.14);
  border-color: rgba(61, 207, 142, 0.3);
}

.kyc-uploads {
  display: grid;
  gap: 0.55rem;
}
.kyc-upload {
  position: relative;
  display: block;
  min-height: 112px;
  border-radius: 16px;
  overflow: hidden;
  isolation: isolate;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  cursor: pointer;
  background:
    linear-gradient(165deg, rgba(61, 207, 142, 0.06), transparent 50%),
    rgba(0, 0, 0, 0.28);
  border: 1.5px dashed rgba(61, 207, 142, 0.35);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.kyc-upload:hover {
  border-color: rgba(61, 207, 142, 0.6);
  background:
    linear-gradient(165deg, rgba(61, 207, 142, 0.1), transparent 50%),
    rgba(0, 0, 0, 0.32);
}
.kyc-upload.has-file {
  border-style: solid;
  border-color: rgba(61, 207, 142, 0.45);
}
.kyc-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 3;
}
.kyc-upload-ui {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 0.2rem;
  padding: 1.15rem 0.85rem;
  text-align: center;
}
.kyc-upload-ico {
  width: 44px; height: 44px;
  margin-bottom: 0.25rem;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: rgba(61, 207, 142, 0.12);
  border: 1px solid rgba(61, 207, 142, 0.22);
}
.kyc-upload-ui strong {
  font-size: 0.92rem;
  color: var(--ink);
}
.kyc-upload-sub {
  font-size: 0.74rem;
}
.kyc-upload-name {
  display: none;
  margin-top: 0.25rem;
  max-width: 100%;
  padding: 0 0.5rem;
  font-size: 0.72rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kyc-upload.has-file .kyc-upload-name { display: block; color: var(--accent); }
.kyc-upload.has-file .kyc-upload-sub { display: none; }
.kyc-upload-progress {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.45rem;
  border-radius: inherit;
  overflow: hidden;
  background: rgba(6, 10, 8, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
  animation: kycProgIn 0.28s ease both;
}
.kyc-upload-progress[hidden] { display: none !important; }
@keyframes kycProgIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.kyc-ring {
  position: relative;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
}
.kyc-ring-svg {
  width: 72px;
  height: 72px;
  transform: rotate(-90deg);
  overflow: visible;
}
.kyc-ring-bg,
.kyc-ring-fg {
  fill: none;
  stroke-width: 2.6;
}
.kyc-ring-bg { stroke: rgba(255, 255, 255, 0.12); }
.kyc-ring-fg {
  stroke: url(#kycRingGrad);
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-dasharray: 97.4;
  stroke-dashoffset: 97.4;
  transition: stroke-dashoffset 0.18s ease;
  filter: drop-shadow(0 0 6px rgba(61, 207, 142, 0.45));
}
.kyc-ring-pct {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.kyc-ring-ok {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: radial-gradient(circle at 50% 50%, #3dcf8e 0%, #2aa86f 70%);
  border-radius: 50%;
  transform: scale(0.4);
  opacity: 0;
  box-shadow: 0 0 0 0 rgba(61, 207, 142, 0.35);
}
.kyc-ring-ok[hidden] { display: none !important; }
.kyc-ring-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: #eef3ef;
  letter-spacing: 0.02em;
}
.kyc-upload.is-uploading {
  pointer-events: none;
  border-style: solid;
  border-color: rgba(61, 207, 142, 0.55);
}
.kyc-upload.is-uploading input[type="file"] {
  pointer-events: none;
}
.kyc-upload.is-uploading .kyc-upload-ui {
  opacity: 0.35;
}
.kyc-upload.is-done .kyc-ring-fg {
  stroke: #3dcf8e;
  stroke-dashoffset: 0 !important;
}
.kyc-upload.is-done .kyc-ring-pct {
  opacity: 0;
  transform: scale(0.6);
}
.kyc-upload.is-done .kyc-ring-ok {
  display: grid !important;
  animation: kycOkPop 0.55s cubic-bezier(0.2, 1.2, 0.3, 1) forwards;
}
.kyc-upload.is-done .kyc-ring-label {
  color: var(--accent);
}
@keyframes kycOkPop {
  0% { opacity: 0; transform: scale(0.35); box-shadow: 0 0 0 0 rgba(61, 207, 142, 0.5); }
  60% { opacity: 1; transform: scale(1.08); box-shadow: 0 0 0 12px rgba(61, 207, 142, 0); }
  100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(61, 207, 142, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .kyc-upload-progress,
  .kyc-upload.is-done .kyc-ring-ok {
    animation: none !important;
  }
  .kyc-upload.is-done .kyc-ring-ok {
    opacity: 1;
    transform: none;
  }
}
.kyc-form.is-kyc-busy .kyc-submit {
  opacity: 0.85;
  pointer-events: none;
}
.kyc-form.is-kyc-busy .kyc-types,
.kyc-form.is-kyc-busy .pf-field {
  pointer-events: none;
  opacity: 0.72;
}
.kyc-upload-preview {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.kyc-upload.has-preview .kyc-upload-preview { display: block; }
.kyc-upload.has-preview .kyc-upload-ui {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 0.55rem 0.65rem 0.65rem;
  background: linear-gradient(180deg, transparent, rgba(8, 12, 10, 0.92));
  justify-items: start;
  text-align: left;
}
.kyc-upload.has-preview .kyc-upload-ico { display: none; }
.kyc-upload-ico.gold {
  color: var(--accent-2);
  background: rgba(232, 194, 122, 0.12);
  border-color: rgba(232, 194, 122, 0.28);
}
.kyc-upload-selfie {
  border-color: rgba(232, 194, 122, 0.4);
  background:
    linear-gradient(165deg, rgba(232, 194, 122, 0.08), transparent 50%),
    rgba(0, 0, 0, 0.28);
}
.kyc-upload-selfie:hover {
  border-color: rgba(232, 194, 122, 0.65);
}

.kyc-submit {
  margin-top: 0.15rem;
}

@media (min-width: 380px) {
  .kyc-types {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .kyc-type {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 0.45rem;
    padding: 0.85rem 0.5rem;
  }
  .kyc-type-label { font-size: 0.78rem; line-height: 1.25; }
}

/* —— Support / Help —— */
.sp-hero {
  position: relative;
  overflow: hidden;
  margin: 0 0 0.9rem;
  padding: 1.35rem 1.15rem 1.25rem;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(61, 207, 142, 0.1), transparent 42%),
    linear-gradient(165deg, #1a2a23 0%, #101714 100%);
  border: 1px solid rgba(61, 207, 142, 0.26);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  animation: rise 0.4s ease both;
}
.sp-hero-glow {
  position: absolute;
  width: 220px; height: 220px;
  right: -80px; top: -90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 194, 122, 0.16), transparent 70%);
  pointer-events: none;
}
.sp-hero .eyebrow {
  position: relative;
  z-index: 1;
  color: var(--accent);
  font-weight: 700;
}
.sp-hero h1 {
  position: relative;
  z-index: 1;
  margin: 0.2rem 0 0.4rem;
  font-size: clamp(1.55rem, 6vw, 1.95rem);
  letter-spacing: -0.03em;
}
.sp-hero-sub {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  max-width: 32ch;
}

.sp-contact {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 0.85rem;
  margin-bottom: 0.9rem;
  padding: 1.15rem 1.05rem;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(61, 207, 142, 0.06), transparent 30%),
    linear-gradient(165deg, #1a2420 0%, #111814 100%);
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  animation: rise 0.4s ease both;
}
.sp-contact-glow {
  position: absolute;
  width: 140px; height: 140px;
  left: -40px; bottom: -50px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 207, 142, 0.12), transparent 70%);
  pointer-events: none;
}
.sp-contact-ico {
  position: relative;
  z-index: 1;
  width: 44px; height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: rgba(61, 207, 142, 0.1);
  border: 1px solid rgba(61, 207, 142, 0.22);
}
.sp-contact-body { position: relative; z-index: 1; }
.sp-contact-body h2 {
  margin: 0 0 0.2rem;
  font-size: 1.1rem;
}
.sp-contact-body .muted {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
}
.sp-email {
  font-weight: 700;
  font-size: 0.95rem;
  word-break: break-all;
}
.sp-mail-btn {
  position: relative;
  z-index: 1;
  min-height: 2.85rem;
  border-radius: 14px;
  border-color: transparent;
  background: linear-gradient(145deg, #5ee0a4 0%, var(--accent) 45%, #2aa86f 100%);
  box-shadow: 0 10px 24px rgba(61, 207, 142, 0.24);
  font-weight: 700;
}

.sp-topics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 0.9rem;
  animation: rise 0.4s ease both;
}
.sp-topic {
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem 0.8rem;
  border-radius: 16px;
  background: rgba(20, 28, 24, 0.9);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
.sp-topic:hover {
  border-color: rgba(61, 207, 142, 0.35);
  color: var(--ink);
  text-decoration: none;
}
.sp-topic strong {
  font-size: 0.88rem;
}
.sp-topic .muted {
  font-size: 0.72rem;
}
.sp-topic-ico {
  width: 34px; height: 34px;
  margin-bottom: 0.25rem;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: rgba(61, 207, 142, 0.1);
  border: 1px solid rgba(61, 207, 142, 0.2);
}
.sp-topic-ico.gold {
  color: var(--accent-2);
  background: rgba(232, 194, 122, 0.1);
  border-color: rgba(232, 194, 122, 0.24);
}

.sp-card {
  margin-bottom: 0.9rem;
  padding: 1.15rem 1.05rem 1.1rem;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(61, 207, 142, 0.04), transparent 26%),
    linear-gradient(165deg, #1a2420 0%, #111814 100%);
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  animation: rise 0.4s ease both;
}
.sp-card-head {
  margin-bottom: 0.9rem;
}
.sp-card-head h2 {
  margin: 0 0 0.15rem;
  font-size: 1.1rem;
}
.sp-card-head .muted {
  margin: 0;
  font-size: 0.8rem;
}
.sp-faq {
  display: grid;
  gap: 0.5rem;
}
.sp-faq-item {
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
  overflow: hidden;
}
.sp-faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 0.95rem;
  font-weight: 650;
  font-size: 0.92rem;
}
.sp-faq-item summary::-webkit-details-marker { display: none; }
.sp-faq-chev {
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.2s ease;
}
.sp-faq-item[open] .sp-faq-chev {
  transform: rotate(180deg);
  color: var(--accent);
}
.sp-faq-item p {
  margin: 0;
  padding: 0 0.95rem 0.95rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}
.sp-tip {
  margin: 0.25rem 0 0.5rem;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  background: rgba(232, 194, 122, 0.06);
  border: 1px solid rgba(232, 194, 122, 0.18);
}
.sp-tip .muted {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
}

.sp-ticket-card { display: grid; gap: 0.85rem; }
.sp-ticket-form { display: grid; gap: 0.7rem; position: relative; z-index: 1; }
.sp-ticket-form label { display: grid; gap: 0.3rem; }
.sp-ticket-form select,
.sp-ticket-form input,
.sp-ticket-form textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.22);
  color: var(--ink);
  padding: 0.7rem 0.85rem;
  font: inherit;
}
.sp-channels {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 1rem;
}
.sp-channel {
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
}
.sp-channel strong { display: block; margin-bottom: 0.2rem; }
.sp-channel .muted { margin: 0 0 0.55rem; font-size: 0.82rem; }
.sp-ticket-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.sp-ticket-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.16);
  color: inherit;
  text-decoration: none;
}
.sp-ticket-row strong { display: block; margin-bottom: 0.15rem; }
.sp-ticket-row .muted { font-size: 0.78rem; }
.sp-ticket-row.is-unread { border-color: rgba(61, 207, 142, 0.35); }
.sp-unread-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.sp-thread { display: grid; gap: 0.85rem; }
.sp-thread-msgs {
  display: grid;
  gap: 0.65rem;
  max-height: min(58vh, 520px);
  overflow: auto;
  padding: 0.2rem;
}
.sp-msg {
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
}
.sp-msg.is-admin {
  border-color: rgba(61, 207, 142, 0.25);
  background: rgba(61, 207, 142, 0.07);
}
.sp-msg.is-user { background: rgba(0,0,0,0.2); }
.sp-msg header {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
}
.sp-msg p { margin: 0; white-space: pre-wrap; word-break: break-word; font-size: 0.92rem; line-height: 1.4; }
.sp-reply-form { display: grid; gap: 0.55rem; }
.sp-reply-form textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.22);
  color: var(--ink);
  padding: 0.8rem 0.9rem;
  font: inherit;
  resize: vertical;
}
.sp-admin-thread { padding: 1rem; }
.sp-tg-link { padding: 1.1rem; }
.sp-tg-steps {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
.sp-tg-steps strong { color: var(--ink); }
.sp-tg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}
.sp-tg-actions form { margin: 0; }
.sp-channel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}
.sp-channel-actions form { margin: 0; }
.ad-tg-status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.95rem;
}
.ad-tg-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--muted);
}
.ad-tg-pill.is-ok {
  border-color: rgba(61, 207, 142, 0.35);
  background: rgba(61, 207, 142, 0.1);
  color: var(--ink);
}
.ad-tg-pill.is-warn {
  border-color: rgba(230, 168, 68, 0.4);
  background: rgba(230, 168, 68, 0.1);
  color: var(--ink);
}
.ad-tg-admins-list,
.ad-tg-add-admin,
.ad-tg-detected {
  margin-top: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}
.ad-tg-admins-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: baseline;
  margin-bottom: 0.65rem;
}
.ad-tg-admins-head strong {
  font-size: 0.88rem;
  color: var(--ink);
}
.ad-tg-admins-head .muted { font-size: 0.78rem; }
.ad-tg-admins-rows {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.ad-tg-admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.ad-tg-admin-meta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.ad-tg-admin-meta strong {
  font-size: 0.85rem;
  color: var(--ink);
}
.ad-tg-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.ad-tg-remove {
  color: var(--danger);
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
}
.ad-tg-add-admin strong {
  font-size: 0.88rem;
  color: var(--ink);
  display: block;
  margin-bottom: 0.5rem;
}
.ad-tg-add-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.ad-tg-add-row input {
  flex: 1;
  min-width: 140px;
  font-size: 0.85rem;
  padding: 0.4rem 0.65rem;
}
.ad-tg-detected {
  border-color: rgba(61, 207, 142, 0.28);
  background: rgba(61, 207, 142, 0.08);
}
.ad-tg-detected-actions {
  margin-top: 0.55rem;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.ad-tg-setup-steps {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
}
.ad-tg-setup-steps strong { color: var(--ink); }
.ad-tg-mfs-numbers {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}
.ad-tg-mfs-numbers > strong {
  display: block;
  font-size: 0.88rem;
  color: var(--ink);
  margin-bottom: 0.25rem;
}
.ad-tg-mfs-numbers > .muted {
  margin: 0;
  font-size: 0.78rem;
}
.ad-inline-status { display: flex; gap: 0.45rem; align-items: center; flex-wrap: wrap; }
.ad-inline-status select {
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--ink);
  padding: 0.4rem 0.55rem;
}
.ad-row-unread td { background: rgba(61, 207, 142, 0.04); }
.side-nav-badge {
  margin-left: auto;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
}

@media (prefers-reduced-motion: reduce) {
  .sp-hero, .sp-contact, .sp-topics, .sp-card { animation: none !important; }
}


.faq-list { display: grid; gap: 0.55rem; }
.faq {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  padding: 0.75rem 0.9rem;
}
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 0.55rem 0 0; color: var(--muted); }

.soft-links { display: grid; gap: 0.45rem; }
.soft-links a {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.toast {
  position: fixed;
  left: 50%; bottom: calc(var(--tab-h) + 12px);
  transform: translateX(-50%);
  background: #1c2822;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  z-index: 80;
  box-shadow: var(--shadow);
  animation: rise 0.25s ease both;
}
.theme-admin .toast {
  bottom: 1.25rem;
  z-index: 1200;
  background: #0f1a16;
  color: #e8f2ec;
  border-color: rgba(110, 231, 183, 0.28);
}
.btn.is-copied,
.dp-copy.is-copied,
.rf-copy.is-copied,
.pf-copy-mini.is-copied,
.cm-address-copy.is-copied {
  color: #6ee7b7 !important;
  border-color: rgba(110, 231, 183, 0.45) !important;
}

.hero {
  position: relative;
  min-height: 62vh;
  display: grid; align-items: end;
  padding: 1.5rem 0 0.5rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 10%, var(--bg) 90%),
    linear-gradient(145deg, #163528, #0c1210 50%, #1a2210);
  animation: drift 16s ease-in-out infinite alternate;
  z-index: 0;
}
@keyframes drift {
  from { transform: scale(1); }
  to { transform: scale(1.06) translateY(-8px); }
}
.hero-copy { position: relative; z-index: 1; }
.brand-hero {
  font-size: clamp(2.6rem, 12vw, 3.8rem);
  font-weight: 800; line-height: 0.95; margin-bottom: 0.6rem;
  background: linear-gradient(120deg, #fff 20%, var(--accent) 70%, var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { color: var(--muted); max-width: 34ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }

/* —— Landing page —— */
.guest-phone::before {
  content: "";
  display: block;
  flex-shrink: 0;
  height: env(safe-area-inset-top, 0px);
  background: #0f2a1f;
}
.land-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  margin: 0;
  flex-shrink: 0;
  border-bottom: 1px solid transparent;
  background: rgba(12, 18, 16, 0.35);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  animation: land-header-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
  overflow: visible;
}
.land-header.is-scrolled {
  background: rgba(12, 18, 16, 0.88);
  border-bottom-color: rgba(61, 207, 142, 0.14);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}
@keyframes land-header-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.land-header-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
  animation: land-header-brand-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}
@keyframes land-header-brand-in {
  from { opacity: 0; transform: translateX(-6px); }
  to { opacity: 1; transform: none; }
}

/* Shared brand lockup (landing header style — used site-wide) */
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}
.brand-lockup-mark {
  position: relative;
  flex-shrink: 0;
  border-radius: 11px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(61, 207, 142, 0.22);
  background: #0a0a0a;
}
.brand-lockup--sm .brand-lockup-mark { width: 28px; height: 28px; border-radius: 8px; }
.brand-lockup--md .brand-lockup-mark { width: 36px; height: 36px; border-radius: 11px; }
.brand-lockup--lg .brand-lockup-mark { width: 44px; height: 44px; border-radius: 14px; }
.brand-lockup-mark img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  display: block;
  background: #0a0a0a;
  position: relative;
  z-index: 1;
}
.brand-lockup-ring {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1.5px rgba(61, 207, 142, 0.55);
  opacity: 0.55;
  animation: brand-lockup-ring 2.8s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}
@keyframes brand-lockup-ring {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.9; }
}
.brand-lockup-name {
  position: relative;
  overflow: hidden;
  min-width: 0;
}
.brand-lockup-name-text {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(105deg, #fff 30%, var(--accent) 55%, var(--accent-2) 78%, #fff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: brand-lockup-shine 5.5s ease-in-out infinite;
}
.brand-lockup--sm .brand-lockup-name-text { font-size: 1.05rem; }
.brand-lockup--md .brand-lockup-name-text { font-size: 1.15rem; }
.brand-lockup--lg .brand-lockup-name-text { font-size: 1.5rem; }
@keyframes brand-lockup-shine {
  0%, 70%, 100% { background-position: 100% 50%; }
  85% { background-position: 0% 50%; }
}

/* Landing header aliases → shared lockup */
.land-header-mark {
  position: relative;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 11px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(61, 207, 142, 0.22);
}
.land-header-mark img {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  object-fit: cover;
  display: block;
  background: #0a0a0a;
  position: relative;
  z-index: 1;
}
.land-header-mark-ring {
  position: absolute;
  inset: 0;
  border-radius: 11px;
  box-shadow: inset 0 0 0 1.5px rgba(61, 207, 142, 0.55);
  opacity: 0.55;
  animation: brand-lockup-ring 2.8s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}
.land-header-name {
  position: relative;
  overflow: hidden;
  min-width: 0;
}
.land-header-name-text {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(105deg, #fff 30%, var(--accent) 55%, var(--accent-2) 78%, #fff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: brand-lockup-shine 5.5s ease-in-out infinite;
}
.land-header-nav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  animation: land-header-nav-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
}
@keyframes land-header-nav-in {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: none; }
}
.land-header-link {
  position: relative;
  padding: 0.45rem 0.7rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}
.land-header-link::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.28rem;
  height: 1.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}
.land-header-link:hover,
.land-header-link:focus-visible {
  color: var(--ink);
  background: rgba(238, 243, 239, 0.04);
  text-decoration: none;
}
.land-header-link:hover::after,
.land-header-link:focus-visible::after {
  transform: scaleX(1);
}
.land-header-join {
  animation: land-header-join-pulse 2.4s ease-in-out 1s 2;
  box-shadow: 0 0 0 0 rgba(61, 207, 142, 0.35);
}
@keyframes land-header-join-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(61, 207, 142, 0); transform: none; }
  40% { box-shadow: 0 0 0 8px rgba(61, 207, 142, 0); transform: translateY(-1px); }
  50% { box-shadow: 0 0 0 0 rgba(61, 207, 142, 0.28); }
}
.land-header-join:hover {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .land-header,
  .land-header-brand,
  .land-header-nav,
  .land-header-mark-ring,
  .land-header-name-text,
  .land-header-join,
  .brand-lockup-ring,
  .brand-lockup-name-text {
    animation: none !important;
  }
  .land-header-link::after { transition: none; }
}

.guest-phone:has(.land-page) .topbar-guest {
  border-bottom-color: transparent;
  background: transparent;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(12, 18, 16, 0.72);
}
.land-page {
  padding: 0 0 2.5rem;
  animation: land-in 0.55s ease both;
}
@keyframes land-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.land-hero {
  position: relative;
  min-height: calc(100dvh - 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 0 1.75rem;
  margin: 0 -0.15rem;
  overflow: hidden;
}
.land-hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.land-hero-glow {
  position: absolute;
  inset: -20% -30% auto;
  height: 70%;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(61, 207, 142, 0.28), transparent 58%),
    radial-gradient(ellipse at 80% 40%, rgba(232, 194, 122, 0.12), transparent 45%);
  animation: land-glow 10s ease-in-out infinite alternate;
}
.land-hero-aurora {
  position: absolute;
  inset: -10% -20% 30%;
  background:
    conic-gradient(from 180deg at 50% 0%, rgba(61, 207, 142, 0.16), transparent 40%, rgba(232, 194, 122, 0.1), transparent 75%);
  filter: blur(28px);
  animation: land-aurora 14s ease-in-out infinite alternate;
  opacity: 0.85;
}
@keyframes land-aurora {
  from { transform: translateY(0) scale(1) rotate(0deg); }
  to { transform: translateY(18px) scale(1.08) rotate(8deg); }
}
.land-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.55;
  pointer-events: none;
}
.land-hero-orb-a {
  width: 120px;
  height: 120px;
  right: -20px;
  top: 28%;
  background: radial-gradient(circle, rgba(61, 207, 142, 0.45), transparent 70%);
  animation: land-orb 9s ease-in-out infinite alternate;
}
.land-hero-orb-b {
  width: 90px;
  height: 90px;
  left: -10px;
  top: 42%;
  background: radial-gradient(circle, rgba(232, 194, 122, 0.35), transparent 70%);
  animation: land-orb 11s ease-in-out infinite alternate-reverse;
}
@keyframes land-orb {
  from { transform: translateY(0); opacity: 0.35; }
  to { transform: translateY(-22px); opacity: 0.7; }
}
@keyframes land-glow {
  from { opacity: 0.85; transform: scale(1); }
  to { opacity: 1; transform: scale(1.08); }
}
.land-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(238, 243, 239, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238, 243, 239, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.55), transparent 78%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.55), transparent 78%);
}
.land-hero-logo {
  position: absolute;
  left: 50%;
  top: 8%;
  width: min(72vw, 280px);
  height: auto;
  transform: translateX(-50%);
  filter: drop-shadow(0 28px 48px rgba(61, 207, 142, 0.22));
  animation: land-float 7s ease-in-out infinite alternate;
  opacity: 0.95;
}
@keyframes land-float {
  from { transform: translateX(-50%) translateY(0); }
  to { transform: translateX(-50%) translateY(-12px); }
}
.land-hero-copy {
  position: relative;
  z-index: 1;
  padding-top: 11rem;
}
.land-brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.8rem, 14vw, 4rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin: 0 0 0.85rem;
  background: linear-gradient(120deg, #fff 18%, var(--accent) 62%, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rise 0.55s ease 0.08s both;
}
.land-headline {
  font-family: var(--display);
  font-size: clamp(1.35rem, 5.5vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 0.65rem;
  color: var(--ink);
  max-width: 16ch;
  animation: rise 0.55s ease 0.16s both;
}
.land-lede {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 34ch;
  animation: rise 0.55s ease 0.24s both;
}
.land-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.35rem;
  animation: rise 0.55s ease 0.32s both;
}
.land-cta .btn { min-width: 8.5rem; }

.land-section {
  margin-top: 2.75rem;
  padding-top: 0.25rem;
}
.land-h2 {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.35rem;
}
.land-sub {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  max-width: 36ch;
}

.land-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.land-step {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 0.85rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.land-step-num {
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  padding-top: 0.15rem;
}
.land-step strong {
  display: block;
  font-size: 1.02rem;
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}
.land-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.land-plan-list {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1.1rem;
}
.land-plan {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.land-plan:first-child { border-top: 1px solid var(--line); }
.land-plan-main { min-width: 0; flex: 1; }
.land-plan-main h3 {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.land-plan-main p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}
.land-plan-meta {
  text-align: right;
  flex-shrink: 0;
}
.land-plan-meta strong {
  display: block;
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.land-plan-meta span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: var(--muted);
}
.land-plans-cta { margin-top: 0.35rem; }

.land-close {
  text-align: left;
  padding: 1.75rem 0 0.5rem;
  border-top: 1px solid var(--line);
  margin-top: 2.5rem;
}
.land-close .btn { margin-top: 0.35rem; }
.land-close .land-cta { margin-top: 1rem; }

.land-inline-link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
  text-decoration: none;
}
.land-inline-link:hover { text-decoration: underline; }

.land-promise-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.land-promise-list li {
  display: grid;
  gap: 0.25rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
}
.land-promise-list strong {
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.land-promise-list span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.land-trust-row {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.land-trust-row > div {
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
}
.land-trust-row strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1.02rem;
}
.land-trust-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

/* Scroll reveal */
[data-land-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-land-reveal].is-in {
  opacity: 1;
  transform: none;
}
.land-steps .land-step {
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.land-section.is-in .land-step {
  opacity: 1;
  transform: none;
}
.land-section.is-in .land-step:nth-child(1) { transition-delay: 0.05s; }
.land-section.is-in .land-step:nth-child(2) { transition-delay: 0.12s; }
.land-section.is-in .land-step:nth-child(3) { transition-delay: 0.2s; }
.land-section.is-in .land-step:nth-child(4) { transition-delay: 0.28s; }
.land-section.is-in .land-step:nth-child(5) { transition-delay: 0.36s; }
.land-section.is-in .land-step:nth-child(6) { transition-delay: 0.44s; }

/* Menu */
.land-menu-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(238, 243, 239, 0.04);
  display: inline-grid;
  place-content: center;
  gap: 4px;
  padding: 0;
  cursor: pointer;
  color: var(--ink);
}
.land-menu-btn span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.land-menu:not([hidden]) .land-menu-btn span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.land-menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.land-menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.land-menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.land-menu {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: grid;
  pointer-events: none;
}
.land-menu:not([hidden]) { pointer-events: auto; }
.land-menu[hidden] { display: none !important; }
.land-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 6, 0.62);
  opacity: 0;
  transition: opacity 0.28s ease;
}
.land-menu.is-open .land-menu-backdrop { opacity: 1; }
.land-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100%, 320px);
  height: 100%;
  background: linear-gradient(165deg, #15201b, #0c1210 55%);
  border-left: 1px solid rgba(61, 207, 142, 0.14);
  padding: 1rem 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transform: translateX(104%);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: -18px 0 40px rgba(0, 0, 0, 0.35);
}
.land-menu.is-open .land-menu-panel { transform: none; }
.land-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0.15rem;
}
.land-menu-head strong {
  font-family: var(--display);
  font-size: 1.1rem;
}
.land-menu-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: rgba(238, 243, 239, 0.06);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.land-menu-nav {
  display: grid;
  gap: 0.25rem;
  flex: 1;
  overflow: auto;
}
.land-menu-link {
  display: block;
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}
.land-menu-link:hover,
.land-menu-link.is-active {
  background: rgba(61, 207, 142, 0.1);
  border-color: rgba(61, 207, 142, 0.22);
  color: #fff;
}
.land-menu-actions {
  display: grid;
  gap: 0.55rem;
  padding-top: 0.35rem;
}

/* Footer */
.land-foot {
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1.5rem;
}
.land-foot-brand { display: grid; gap: 0.45rem; }
.land-foot-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
}
.land-foot-logo img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
}
.land-foot-tag {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
  max-width: 32ch;
}
.land-foot-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}
.land-foot-col {
  display: grid;
  gap: 0.4rem;
  align-content: start;
}
.land-foot-col h3 {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.land-foot-col a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.35;
}
.land-foot-col a:hover { color: var(--accent); }
.land-foot-reach {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}
.land-foot-icon-btn {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(20, 28, 24, 0.75);
  color: var(--accent);
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}
.land-foot-icon-btn:hover {
  border-color: rgba(61, 207, 142, 0.35);
  background: rgba(61, 207, 142, 0.08);
  transform: translateY(-1px);
}
.land-foot-icon-tg {
  color: #2AABEE;
}
.land-foot-icon-tg:hover {
  border-color: rgba(42, 171, 238, 0.4);
  background: rgba(42, 171, 238, 0.1);
  color: #2AABEE;
}
.land-foot-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 100%;
  min-width: 0;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(20, 28, 24, 0.75);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 550;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.land-foot-chip:hover {
  border-color: rgba(61, 207, 142, 0.35);
  color: var(--accent);
  background: rgba(61, 207, 142, 0.08);
}
.land-foot-chip-tg .land-foot-ico {
  color: #2AABEE;
}
.land-foot-chip-tg:hover .land-foot-ico {
  color: #2AABEE;
}
.land-foot-ico {
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  color: var(--accent);
}
.land-foot-chip-text {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.3;
}
.land-foot-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.78rem;
  padding-bottom: 0.5rem;
}
.land-foot-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.7;
}

/* Inner marketing pages */
.land-doc { padding-bottom: 1.5rem; }
.land-doc-hero {
  padding: 1.25rem 0 0.35rem;
}
.land-doc-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.land-doc-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.85rem, 8vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.land-doc-lede {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 36ch;
}
.land-doc-block {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.land-doc-block h2 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
}
.land-doc-block p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}
.land-doc-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 2rem;
}

.land-guide {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.land-guide > li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0.85rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}
.land-guide-num {
  font-family: var(--display);
  font-weight: 800;
  color: var(--accent);
  padding-top: 0.15rem;
}
.land-guide h2 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
}
.land-guide p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.land-faq {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.5rem;
}
.land-faq-item {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(20, 28, 24, 0.72);
  padding: 0.15rem 0.95rem 0.15rem;
  overflow: hidden;
}
.land-faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 650;
  padding: 0.85rem 0;
  position: relative;
  padding-right: 1.5rem;
}
.land-faq-item summary::-webkit-details-marker { display: none; }
.land-faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
}
.land-faq-item[open] summary::after { content: '–'; }
.land-faq-item p {
  margin: 0 0 0.95rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.land-contact {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.land-contact-card {
  display: grid;
  gap: 0.25rem;
  padding: 1.1rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(61, 207, 142, 0.08), rgba(20, 28, 24, 0.9));
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
a.land-contact-card:hover {
  border-color: rgba(61, 207, 142, 0.35);
  transform: translateY(-2px);
}
.land-contact-card.is-static {
  background: rgba(20, 28, 24, 0.72);
}
.land-contact-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.land-contact-card strong {
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.land-contact-hint {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}
.land-contact-card .btn { margin-top: 0.55rem; justify-self: start; }

.guest-phone.is-marketing {
  position: relative;
}
.guest-phone.is-marketing .app-scroll {
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
}

@media (prefers-reduced-motion: reduce) {
  .land-page,
  .land-brand,
  .land-headline,
  .land-lede,
  .land-cta,
  .land-hero-logo,
  .land-hero-glow,
  .land-hero-aurora,
  .land-hero-orb,
  [data-land-reveal],
  .land-steps .land-step,
  .land-menu-panel,
  .land-menu-backdrop {
    animation: none !important;
    transition: none !important;
  }
  [data-land-reveal],
  .land-steps .land-step {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Admin keeps wide layout */
.theme-admin {
  background: #101412;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  height: auto !important;
  min-height: 100dvh;
  max-width: 100%;
}
.admin-frame {
  display: block;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* Mobile top bar + drawer nav (<900px) */
.admin-mobile-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 56px;
  padding: 0.65rem 0.85rem;
  padding-top: calc(0.65rem + env(safe-area-inset-top, 0px));
  border-bottom: 1px solid var(--line);
  background: rgba(12, 16, 14, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.admin-mobile-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: 1;
  min-width: 0;
  text-decoration: none;
}
.admin-mobile-brand .brand-lockup-name-text {
  font-size: 1.05rem;
}
.admin-mobile-app { flex-shrink: 0; }
.admin-nav-toggle {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}
.admin-nav-toggle:hover { border-color: rgba(61, 207, 142, 0.35); }
.admin-nav-toggle-bars,
.admin-nav-toggle-bars::before,
.admin-nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  position: relative;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.admin-nav-toggle-bars::before,
.admin-nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.admin-nav-toggle-bars::before { top: -6px; }
.admin-nav-toggle-bars::after { top: 6px; }
body.is-admin-nav-open .admin-nav-toggle-bars { background: transparent; }
body.is-admin-nav-open .admin-nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}
body.is-admin-nav-open .admin-nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}
.admin-nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(4, 8, 6, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border: 0;
  padding: 0;
  cursor: pointer;
}
.admin-nav-scrim[hidden] { display: none !important; }

.admin-side {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  width: min(288px, calc(100vw - 3rem));
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  padding: 1.1rem 1rem;
  padding-top: calc(1.1rem + env(safe-area-inset-top, 0px));
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(61, 207, 142, 0.06), transparent 28%),
    #0c100e;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  transform: translateX(-105%);
  visibility: hidden;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.28s;
  box-shadow: 16px 0 40px rgba(0, 0, 0, 0.35);
}
body.is-admin-nav-open .admin-side {
  transform: translateX(0);
  visibility: visible;
}
.admin-side-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.admin-nav-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}
.admin-nav-close:hover { color: var(--ink); border-color: rgba(61, 207, 142, 0.3); }
.admin-nav-close svg { width: 16px; height: 16px; }
.admin-brand-block {
  margin-bottom: 0.35rem;
  flex-shrink: 0;
}
.admin-brand {
  font-size: 1.35rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}
.admin-brand .brand-lockup-name-text {
  font-size: 1.35rem;
}
.admin-brand-mark {
  width: 34px; height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 18px rgba(61, 207, 142, 0.2);
}
.admin-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.side-label { color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; margin: 0.45rem 0 0; }
.side-nav {
  display: grid;
  gap: 0.2rem;
  margin: 1.1rem 0 0.75rem;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 0;
  /* Scrollable nav, but no visible bar — browser bar stays on the page */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.side-nav::-webkit-scrollbar { display: none; width: 0; height: 0; }
.side-nav-group {
  margin: 0.85rem 0 0.3rem;
  padding: 0 0.75rem;
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(143, 163, 153, 0.72);
}
.side-nav-group:first-child { margin-top: 0.15rem; }
.side-nav a {
  color: var(--muted);
  padding: 0.58rem 0.75rem;
  border-radius: 12px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.side-nav-ico {
  width: 28px; height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  color: inherit;
  flex-shrink: 0;
}
.side-nav a:hover {
  background: var(--bg-soft);
  color: var(--ink);
  transform: translateX(2px);
}
.side-nav a.is-active {
  color: var(--ink);
  background: linear-gradient(135deg, rgba(61, 207, 142, 0.16), rgba(61, 207, 142, 0.05));
  box-shadow: inset 0 0 0 1px rgba(61, 207, 142, 0.22);
}
.side-nav a.is-active .side-nav-ico {
  color: var(--accent);
  background: rgba(61, 207, 142, 0.12);
  border-color: rgba(61, 207, 142, 0.22);
}
.side-nav a.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: var(--accent);
}
.side-foot {
  margin-top: auto;
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  z-index: 2;
  padding: 0.85rem;
  display: grid;
  gap: 0.55rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background:
    linear-gradient(165deg, rgba(26, 36, 32, 0.98), rgba(14, 18, 16, 0.98));
  box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.28);
}
.side-user-link {
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: none;
  padding: 0.45rem 0.7rem;
  transition: color 0.2s ease, background 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 10px;
}
.side-user-link:hover { color: var(--accent); background: rgba(61, 207, 142, 0.06); }
.side-logout { margin: 0; padding: 0 0.35rem; }
.admin-logout-btn { width: 100%; border-radius: 12px; }

.admin-main {
  padding: 0.85rem 0.95rem 2.25rem;
  /* Clear fixed mobile header: bar ~56px + safe-area */
  padding-top: calc(0.85rem + 56px + env(safe-area-inset-top, 0px));
  position: relative;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  width: 100%;
  box-sizing: border-box;
}
.theme-admin.is-overview .admin-main {
  padding-top: calc(0.85rem + 56px + env(safe-area-inset-top, 0px));
}
.admin-main-glow {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(720px 320px at 12% -8%, rgba(61, 207, 142, 0.1), transparent 55%),
    radial-gradient(520px 280px at 92% 4%, rgba(232, 194, 122, 0.06), transparent 50%);
}
.admin-main > *:not(.admin-main-glow):not(.ad-kyc-modal):not(.ad-modal) {
  position: relative;
  z-index: 1;
}
.admin-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.35rem;
}
.admin-top-label {
  margin: 0 0 0.15rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.admin-top .page-title { margin: 0; font-size: clamp(1.45rem, 2.4vw, 1.85rem); }
.admin-top-link { flex-shrink: 0; }

.admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 1.5rem; display: grid; gap: 0.75rem; }
.two-col { display: grid; gap: 1.5rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.theme-admin .table-wrap {
  overflow-x: hidden;
}
.data-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.data-table th, .data-table td { padding: 0.75rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { color: var(--muted); font-weight: 600; background: var(--bg-elev); }
.actions { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* ── Admin dashboard ── */
.ad-dash {
  display: grid;
  gap: 1.25rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.ad-hello {
  margin: 0;
  padding: 0.15rem 0 0.25rem;
}
.ad-hello-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--ink);
}

.ad-money {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  width: 100%;
  min-width: 0;
}
.ad-money-card {
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, #161e1a, #121816);
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}
@media (min-width: 420px) {
  .ad-money { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.ad-money-in {
  border-color: rgba(61, 207, 142, 0.28);
  background:
    linear-gradient(135deg, rgba(61, 207, 142, 0.1), transparent 50%),
    linear-gradient(165deg, #161e1a, #121816);
}
.ad-money-out {
  border-color: rgba(232, 194, 122, 0.28);
  background:
    linear-gradient(135deg, rgba(232, 194, 122, 0.1), transparent 50%),
    linear-gradient(165deg, #161e1a, #121816);
}
.ad-money-net {
  border-color: rgba(61, 207, 142, 0.2);
}
.ad-money-card.is-warn {
  border-color: rgba(232, 194, 122, 0.4);
}
.ad-money-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.ad-money-val {
  font-family: var(--display);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  word-break: break-word;
}
.ad-money-foot {
  font-size: 0.75rem;
  line-height: 1.35;
}
.ad-money-foot a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.ad-money-foot a:hover { text-decoration: underline; }

@media (min-width: 720px) {
  .ad-money { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .ad-money { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.ad-alert-kyc {
  background: linear-gradient(135deg, rgba(97, 160, 255, 0.12), var(--bg-elev) 55%);
}
.ad-alert-kyc .ad-alert-ico {
  background: rgba(97, 160, 255, 0.14);
  color: #7eb6ff;
}
.ad-stat-foot {
  font-size: 0.74rem;
  margin-top: -0.15rem;
}
.ad-ico-kyc {
  color: #7eb6ff;
  background: rgba(97, 160, 255, 0.12);
  border: 1px solid rgba(97, 160, 255, 0.2);
}
.ad-ico-plan {
  color: var(--accent-2);
  background: rgba(232, 194, 122, 0.12);
  border: 1px solid rgba(232, 194, 122, 0.22);
}
.ad-quick-badge {
  margin-left: auto;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  background: var(--accent);
  flex-shrink: 0;
}
.table-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(165deg, #161e1a, #121816);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  max-width: 100%;
}
.theme-admin .table-wrap,
.theme-admin .ad-table-wrap {
  overflow: hidden !important;
  overflow-x: hidden !important;
}
.ad-dash .data-table { min-width: 0; width: 100%; max-width: 100%; table-layout: fixed; }
.ad-dash .data-table th {
  color: var(--muted);
  font-weight: 600;
  background: rgba(0, 0, 0, 0.22);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ad-dash .data-table td { border-bottom-color: rgba(238, 243, 239, 0.06); }

.ad-alerts {
  display: grid;
  gap: 0.65rem;
}
@media (min-width: 720px) {
  .ad-alerts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.ad-alert {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1.05rem;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.ad-alert:hover {
  transform: translateY(-2px);
  border-color: rgba(61, 207, 142, 0.35);
}
.ad-alert-dep { background: linear-gradient(135deg, rgba(61, 207, 142, 0.1), var(--bg-elev) 55%); }
.ad-alert-wd { background: linear-gradient(135deg, rgba(232, 194, 122, 0.1), var(--bg-elev) 55%); }
.ad-alert-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(61, 207, 142, 0.12);
  color: var(--accent);
}
.ad-alert-wd .ad-alert-ico {
  background: rgba(232, 194, 122, 0.14);
  color: var(--accent-2);
}
.ad-alert-body { flex: 1; min-width: 0; display: grid; gap: 0.15rem; }
.ad-alert-body strong { font-size: 0.95rem; }
.ad-alert-body small { color: var(--muted); font-size: 0.8rem; }
.ad-alert-go {
  color: var(--muted);
  font-size: 1.1rem;
  transition: transform 0.22s ease, color 0.22s ease;
}
.ad-alert:hover .ad-alert-go { color: var(--accent); transform: translateX(3px); }

.ad-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.ad-stat {
  padding: 1.05rem 1.1rem;
  border-radius: 18px;
  background:
    linear-gradient(165deg, rgba(26, 36, 32, 0.98), rgba(16, 20, 18, 0.98));
  border: 1px solid var(--line);
  display: grid;
  gap: 0.55rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.28s ease, box-shadow 0.28s ease;
}
.ad-stat::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(61, 207, 142, 0.45), transparent);
  opacity: 0;
  transition: opacity 0.28s ease;
}
.ad-stat:hover {
  transform: translateY(-3px);
  border-color: rgba(61, 207, 142, 0.28);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}
.ad-stat:hover::before { opacity: 1; }
.ad-stat-warn {
  border-color: rgba(232, 194, 122, 0.28);
  background:
    linear-gradient(165deg, rgba(232, 194, 122, 0.07), transparent 40%),
    linear-gradient(165deg, rgba(26, 36, 32, 0.98), rgba(16, 20, 18, 0.98));
}
.ad-stat-top {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.ad-stat-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.ad-stat-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(61, 207, 142, 0.1);
  color: var(--accent);
}
.ad-ico-wd, .ad-ico-paid { background: rgba(232, 194, 122, 0.12); color: var(--accent-2); }
.ad-ico-bal { background: rgba(61, 207, 142, 0.14); }
.ad-stat-val {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  letter-spacing: -0.03em;
  font-weight: 700;
  line-height: 1.15;
}
.ad-stat-link {
  font-size: 0.78rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  width: fit-content;
}
.ad-stat-link:hover { text-decoration: underline; }


.ad-panels {
  display: grid;
  gap: 1rem;
  width: 100%;
  min-width: 0;
}
.ad-panel {
  padding: 1.1rem 1.05rem 1.15rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, #161e1a, #121816);
  min-width: 0;
  width: 100%;
  overflow: visible;
}
.ad-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.95rem;
  min-width: 0;
}
.ad-panel-head-text {
  min-width: 0;
  flex: 1;
}
.ad-panel-head h2 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
}
.ad-panel-head .muted {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  line-height: 1.35;
}
.ad-panel-link {
  flex-shrink: 0;
  align-self: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 0.35rem 0.55rem;
  border-radius: 10px;
  border: 1px solid rgba(61, 207, 142, 0.22);
  background: rgba(61, 207, 142, 0.08);
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.ad-panel-link:hover {
  background: rgba(61, 207, 142, 0.14);
  border-color: rgba(61, 207, 142, 0.4);
  color: var(--accent);
}

.ad-quick {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  width: 100%;
  min-width: 0;
}
.ad-quick-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.7rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(12, 18, 16, 0.55);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}
.ad-quick-item:hover {
  transform: translateY(-2px);
  border-color: rgba(61, 207, 142, 0.35);
  background: rgba(61, 207, 142, 0.08);
  color: var(--ink);
}
.ad-quick-ico {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(61, 207, 142, 0.1);
  color: var(--accent);
  flex-shrink: 0;
}
.ad-quick-label {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
}

.ad-activity {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  width: 100%;
  min-width: 0;
  overflow: visible;
}
.ad-activity-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 0.65rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(238, 243, 239, 0.07);
  min-width: 0;
  width: 100%;
}
.ad-activity-item:first-child { padding-top: 0.15rem; }
.ad-activity-item:last-child {
  border-bottom: 0;
  padding-bottom: 0.1rem;
}
.ad-activity-rail {
  display: flex;
  justify-content: center;
  padding-top: 0.35rem;
  position: relative;
}
.ad-activity-item:not(:last-child) .ad-activity-rail::after {
  content: "";
  position: absolute;
  top: 1.05rem;
  bottom: -0.7rem;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(61, 207, 142, 0.35), rgba(61, 207, 142, 0.05));
}
.ad-activity-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(61, 207, 142, 0.15);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.ad-activity-body {
  min-width: 0;
  display: grid;
  gap: 0.2rem;
}
.ad-activity-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.65rem;
  min-width: 0;
}
.ad-activity-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ad-activity-time {
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.3;
}
.ad-activity-meta {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 0.3rem;
  min-width: 0;
  color: var(--ink);
}
.ad-activity-user {
  font-weight: 600;
  flex-shrink: 0;
  color: var(--accent);
}
.ad-activity-sep {
  color: var(--muted);
  flex-shrink: 0;
}
.ad-activity-detail {
  color: var(--muted);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ad-empty {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  padding: 1.6rem 0.75rem;
  text-align: center;
  border-radius: 14px;
  border: 1px dashed rgba(238, 243, 239, 0.12);
  background: rgba(12, 18, 16, 0.35);
}
.ad-empty-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: rgba(61, 207, 142, 0.1);
  margin-bottom: 0.25rem;
}
.ad-empty p {
  margin: 0;
  font-weight: 600;
  font-size: 0.92rem;
}
.ad-empty small {
  font-size: 0.78rem;
  max-width: 28ch;
}

/* ── Admin list: toolbar, table, actions, pager ── */
.ad-toolbar {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(61, 207, 142, 0.12);
  background:
    linear-gradient(135deg, rgba(61, 207, 142, 0.06), transparent 42%),
    linear-gradient(165deg, #161e1a, #111714);
}
.ad-toolbar-search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}
.ad-search-field {
  position: relative;
  flex: 1 1 200px;
  min-width: 0;
  margin: 0;
}
.ad-search-field input {
  width: 100%;
  height: 2.75rem;
  box-sizing: border-box;
  padding: 0 2.35rem;
  border-radius: 14px;
  border: 1px solid rgba(238, 243, 239, 0.1);
  background: rgba(8, 12, 10, 0.72);
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.2;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.ad-search-field input::placeholder { color: rgba(143, 163, 153, 0.75); }
.ad-search-field input:focus {
  outline: none;
  border-color: rgba(61, 207, 142, 0.5);
  background: rgba(8, 12, 10, 0.92);
  box-shadow: 0 0 0 3px rgba(61, 207, 142, 0.12);
}
.ad-search-ico {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  display: grid;
  place-items: center;
  pointer-events: none;
}
.ad-search-busy {
  position: absolute;
  right: 0.8rem;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border-radius: 50%;
  border: 2px solid rgba(61, 207, 142, 0.25);
  border-top-color: var(--accent);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.ad-toolbar-search.is-searching .ad-search-busy {
  opacity: 1;
  animation: adSpin 0.7s linear infinite;
}
@keyframes adSpin {
  to { transform: rotate(360deg); }
}
.ad-table-card.is-soft-loading {
  opacity: 0.55;
  pointer-events: none;
}
.ad-search-clear { flex-shrink: 0; }
.ad-toolbar-btn { flex-shrink: 0; }
.ad-filter-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  min-width: 0;
  max-width: 100%;
}
.ad-filter-dropdown--inline {
  margin: 0 0 1rem;
}
.ad-filter-dropdown-cap {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.ad-filter-dropdown-control {
  position: relative;
  flex: 0 1 12rem;
  min-width: 9rem;
  max-width: 100%;
}
.ad-filter-select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-width: 0;
  height: 2.75rem;
  box-sizing: border-box;
  padding: 0 2.15rem 0 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(238, 243, 239, 0.1);
  background: rgba(8, 12, 10, 0.72);
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.ad-filter-select:hover {
  border-color: rgba(61, 207, 142, 0.35);
}
.ad-filter-select:focus {
  outline: none;
  border-color: rgba(61, 207, 142, 0.5);
  box-shadow: 0 0 0 3px rgba(61, 207, 142, 0.12);
}
.ad-filter-dropdown-chev {
  position: absolute;
  right: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  display: grid;
  place-items: center;
}
.ad-filter-tabs {
  display: none;
}
.ad-filter-tab { display: none; }
.ad-toolbar-meta {
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.ad-toolbar-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}
.ad-toolbar-create {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}
.ad-toolbar-create svg { flex-shrink: 0; }
@media (min-width: 820px) {
  .ad-toolbar {
    grid-template-columns: minmax(0, 1.2fr) auto auto;
    align-items: center;
    gap: 0.85rem 1rem;
  }
  .ad-toolbar-end {
    justify-self: end;
    justify-content: flex-end;
  }
  .ad-toolbar-meta {
    text-align: right;
  }
}

.ad-table-card {
  position: relative;
  border: 1px solid rgba(61, 207, 142, 0.14);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(61, 207, 142, 0.04), transparent 18%),
    linear-gradient(165deg, #171f1b 0%, #121816 100%);
  overflow: hidden; /* clip any stray overflow — no bottom bar */
  max-width: 100%;
  transition: opacity 0.25s ease;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.03) inset,
    0 18px 40px rgba(0, 0, 0, 0.22);
}
.ad-table-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(61, 207, 142, 0.55), rgba(232, 194, 122, 0.35), transparent);
  pointer-events: none;
  z-index: 2;
}
/* Kill inner horizontal scrollbars on admin tables (mobile uses cards; desktop fits) */
.theme-admin .table-wrap,
.theme-admin .ad-table-wrap,
.ad-table-card > .table-wrap,
.ad-table-card > .ad-table-wrap,
.ad-table-wrap {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  max-width: 100% !important;
  width: 100% !important;
  overflow: hidden !important;
  overflow-x: hidden !important;
  overflow-y: hidden !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
.theme-admin .table-wrap::-webkit-scrollbar,
.theme-admin .ad-table-wrap::-webkit-scrollbar,
.ad-table-wrap::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
.ad-table {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9rem;
}
.ad-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  text-align: left;
  padding: 0.95rem 1.1rem;
  color: rgba(143, 163, 153, 0.95);
  font-size: 0.68rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(10, 14, 12, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(238, 243, 239, 0.08);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ad-table td {
  padding: 1rem 1.1rem;
  border-bottom: 1px solid rgba(238, 243, 239, 0.055);
  vertical-align: middle;
  transition: background 0.18s ease;
  word-break: break-word;
}
.ad-table th.ad-w-main,
.ad-table td.ad-w-main { width: 28%; }
.ad-table th.ad-w-wide,
.ad-table td.ad-w-wide { width: 36%; }
.ad-table th.ad-w-mid,
.ad-table td.ad-w-mid { width: 20%; }
.ad-table th.ad-w-sm,
.ad-table td.ad-w-sm { width: 7.5rem; }
.ad-table th.ad-w-xs,
.ad-table td.ad-w-xs { width: 5.5rem; }
.ad-table th.ad-w-status,
.ad-table td.ad-w-status { width: 7.25rem; }
.ad-table th.ad-w-num,
.ad-table td.ad-w-num { width: 7.5rem; }
.ad-table th.ad-w-date,
.ad-table td.ad-w-date { width: 9.5rem; }
.ad-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.012);
}
.ad-table tbody tr:last-child td { border-bottom: 0; }
.ad-table tbody tr:hover td {
  background: rgba(61, 207, 142, 0.055);
}
.ad-table tbody tr:hover td:first-child {
  box-shadow: inset 3px 0 0 var(--accent);
}
.ad-table td > strong { display: block; line-height: 1.25; }
.ad-table td > small.muted {
  display: block;
  margin-top: 0.18rem;
  line-height: 1.35;
  font-size: 0.78rem;
}
.ad-th-actions { text-align: right !important; }
.ad-empty-row {
  text-align: center !important;
  color: var(--muted);
  padding: 2.6rem 1.2rem !important;
  font-size: 0.92rem;
}
.ad-num {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-family: var(--display);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.ad-mono {
  display: inline-block;
  max-width: 100%;
  padding: 0.22rem 0.45rem;
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.74rem;
  word-break: break-all;
  overflow-wrap: anywhere;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(238, 243, 239, 0.06);
  color: rgba(238, 243, 239, 0.88);
}
.ad-ellipsis {
  display: block;
  max-width: 36ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ad-user-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
.ad-user-cell > span:last-child,
.ad-user-cell > span:not(.ad-avatar):not(.ad-pm-ico) {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}
.ad-user-cell strong { line-height: 1.2; }
.ad-user-cell small { display: block; line-height: 1.3; }
.ad-avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 0.88rem;
  font-family: var(--display);
  color: #fff;
  background: linear-gradient(145deg, #5ee0a4, var(--accent) 55%, #2aa86f);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 16px rgba(61, 207, 142, 0.18);
}
.ad-pm-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.ad-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.65rem 0.28rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.03em;
  text-transform: capitalize;
  border: 1px solid transparent;
  white-space: nowrap;
}
.ad-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}
.ad-badge-ok .ad-badge-dot { box-shadow: 0 0 0 3px rgba(61, 207, 142, 0.18); }
.ad-badge-warn .ad-badge-dot { box-shadow: 0 0 0 3px rgba(232, 194, 122, 0.18); }
.ad-badge-danger .ad-badge-dot { box-shadow: 0 0 0 3px rgba(255, 123, 114, 0.18); }
.ad-badge-muted .ad-badge-dot { box-shadow: 0 0 0 3px rgba(143, 163, 153, 0.14); }
.ad-badge-ok {
  color: var(--accent);
  background: rgba(61, 207, 142, 0.12);
  border-color: rgba(61, 207, 142, 0.22);
}
.ad-badge-warn {
  color: var(--accent-2);
  background: rgba(232, 194, 122, 0.12);
  border-color: rgba(232, 194, 122, 0.22);
}
.ad-badge-danger {
  color: var(--danger);
  background: rgba(255, 123, 114, 0.12);
  border-color: rgba(255, 123, 114, 0.22);
}
.ad-badge-muted {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
}

.ad-table th.ad-th-actions,
.ad-table td.ad-td-actions {
  width: 11.5rem;
  min-width: 11.5rem;
  max-width: none;
  padding-left: 0.65rem;
  padding-right: 1rem;
  text-align: right;
  white-space: nowrap;
  vertical-align: middle;
  overflow: visible !important;
}
.ad-act {
  display: inline-flex !important;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  vertical-align: middle;
  visibility: visible !important;
  opacity: 1 !important;
  min-width: max-content;
}
.ad-table td[data-label="Documents"] .ad-act {
  justify-content: flex-start;
}
.ad-act-none {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  min-width: 76px; /* matches two icon buttons + gap */
  color: var(--muted);
  opacity: 0.5;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  user-select: none;
  line-height: 1;
}
.ad-icon-form,
.ad-action-menu {
  margin: 0;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  vertical-align: middle;
}
.ad-icon-btn {
  width: 36px;
  height: 36px;
  min-width: 36px;
  flex: 0 0 auto;
  border-radius: 11px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(238, 243, 239, 0.1);
  background: rgba(8, 12, 10, 0.55);
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  position: relative;
  list-style: none;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
}
.ad-icon-btn::-webkit-details-marker { display: none; }
.ad-icon-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(61, 207, 142, 0.4);
  background: rgba(61, 207, 142, 0.12);
  color: var(--accent);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}
.ad-icon-btn.is-ok {
  color: var(--accent);
  border-color: rgba(61, 207, 142, 0.28);
  background: rgba(61, 207, 142, 0.08);
}
.ad-icon-btn.is-danger {
  color: var(--danger);
  border-color: rgba(255, 123, 114, 0.25);
  background: rgba(255, 123, 114, 0.06);
}
.ad-icon-btn.is-danger:hover {
  border-color: rgba(255, 123, 114, 0.45);
  background: rgba(255, 123, 114, 0.12);
  color: var(--danger);
}

/* Tooltips — floating tip on body (animated, never clipped) */
[data-tip]::after {
  content: none !important;
  display: none !important;
}
.ad-float-tip {
  position: fixed;
  z-index: 10050;
  left: 0;
  top: 0;
  max-width: min(240px, calc(100vw - 16px));
  padding: 0.42rem 0.7rem;
  border-radius: 10px;
  background: linear-gradient(165deg, #14201a, #0a100e);
  border: 1px solid rgba(61, 207, 142, 0.32);
  color: #eef3ef;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.3;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0, 8px, 0) scale(0.94);
  transition:
    opacity 0.18s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}
.ad-float-tip.is-below {
  transform: translate3d(0, -8px, 0) scale(0.94);
}
.ad-float-tip.is-on {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}
.ad-float-tip.is-on.is-below {
  transform: translate3d(0, 0, 0) scale(1);
}

/* Keep sticky headers under floating UI */
.ad-table th {
  z-index: 2;
}

.ad-action-menu {
  position: relative;
  width: 36px;
  height: 36px;
}
.ad-action-menu > summary { list-style: none; }
.ad-action-menu > summary.ad-icon-btn {
  width: 36px;
  height: 36px;
}
.ad-action-menu[open] > summary {
  border-color: rgba(61, 207, 142, 0.4);
  background: rgba(61, 207, 142, 0.12);
  color: var(--accent);
}
.ad-pop-form {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 50;
  width: min(270px, 82vw);
  padding: 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(61, 207, 142, 0.18);
  background: linear-gradient(165deg, #1a2420, #121816);
  box-shadow: 0 18px 44px rgba(0,0,0,0.45);
  display: grid;
  gap: 0.55rem;
}
.ad-pop-form label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0;
}
.ad-pop-form input {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0c1210;
  color: var(--ink);
  font: inherit;
}

.ad-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin-top: 1rem;
  padding: 0.15rem 0;
  border: none;
  border-radius: 0;
  background: transparent;
}
.ad-pager-meta {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.35;
  flex: 1 1 auto;
  min-width: 0;
}
.ad-pager-meta strong {
  color: var(--ink);
  font-weight: 650;
}
.ad-pager-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.3rem;
  margin-left: auto;
}
.ad-pager-pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}
.ad-pager-btn,
.ad-pager-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 650;
  background: transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.ad-pager-btn {
  width: auto;
  min-width: 36px;
  padding: 0 0.7rem;
}
.ad-pager-btn:hover,
.ad-pager-num:hover {
  background: rgba(61, 207, 142, 0.08);
  border-color: rgba(61, 207, 142, 0.2);
}
.ad-pager-num.is-active {
  background: linear-gradient(145deg, #5ee0a4, var(--accent));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 14px rgba(61, 207, 142, 0.2);
}
.ad-pager-btn.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}
.ad-pager-ellipsis {
  color: var(--muted);
  padding: 0 0.15rem;
  min-width: 1rem;
  text-align: center;
  line-height: 36px;
}

.ad-crud {
  display: grid;
  gap: 1.15rem;
}
.ad-crud-form .form-stack { margin: 0; }
.ad-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.ad-form-page .ad-form-actions {
  margin-top: 0.35rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(238, 243, 239, 0.08);
  justify-content: flex-end;
}
.ad-seo-og {
  display: grid;
  gap: 1rem;
}
@media (min-width: 720px) {
  .ad-seo-og {
    grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
    align-items: start;
  }
}
.ad-seo-og-preview {
  border: 1px solid rgba(238, 243, 239, 0.1);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(12, 18, 16, 0.65);
  aspect-ratio: 1200 / 630;
  display: grid;
  place-items: center;
}
.ad-seo-og-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ad-seo-og-empty {
  display: grid;
  gap: 0.35rem;
  padding: 1.25rem;
  text-align: center;
}
.ad-seo-og-controls {
  min-width: 0;
}
@media (min-width: 980px) {
  .ad-crud {
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
    align-items: start;
  }
  .ad-crud-form { position: sticky; top: 1rem; }
}

.ad-list { display: grid; gap: 1rem; }
.ad-field {
  display: grid;
  gap: 0.45rem;
}
.ad-drop-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .ad-drop-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
  .ad-drop-row .ad-drop {
    min-height: 168px;
  }
}
.ad-field-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}
.ad-drop {
  position: relative;
  display: block;
  min-height: 132px;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background:
    linear-gradient(165deg, rgba(61, 207, 142, 0.07), transparent 52%),
    rgba(0, 0, 0, 0.28);
  border: 1.5px dashed rgba(61, 207, 142, 0.38);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.ad-drop--tall { min-height: 168px; }
.ad-drop:hover,
.ad-drop.is-drag {
  border-color: rgba(61, 207, 142, 0.7);
  background:
    linear-gradient(165deg, rgba(61, 207, 142, 0.12), transparent 52%),
    rgba(0, 0, 0, 0.34);
  box-shadow: 0 0 0 3px rgba(61, 207, 142, 0.12);
}
.ad-drop.is-drag { transform: scale(1.01); }
.ad-drop.has-file {
  border-style: solid;
  border-color: rgba(61, 207, 142, 0.48);
}
.ad-drop input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 3;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 0;
}
.ad-drop-ui {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 0.2rem;
  padding: 1.25rem 0.9rem;
  text-align: center;
  pointer-events: none;
}
.ad-drop-ico {
  width: 46px;
  height: 46px;
  margin-bottom: 0.3rem;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: rgba(61, 207, 142, 0.12);
  border: 1px solid rgba(61, 207, 142, 0.24);
}
.ad-drop-ui strong {
  font-size: 0.92rem;
  color: var(--ink);
}
.ad-drop-sub { font-size: 0.74rem; }
.ad-drop-name {
  display: none;
  margin-top: 0.25rem;
  max-width: 100%;
  padding: 0 0.5rem;
  font-size: 0.72rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ad-drop.has-file .ad-drop-name { display: block; color: var(--accent); }
.ad-drop.has-file .ad-drop-sub { display: none; }
.ad-drop-preview {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #0a0e0c;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.ad-drop.has-preview .ad-drop-preview { display: block; }
.ad-drop.has-preview .ad-drop-ui {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 0.55rem 2.4rem 0.7rem 0.75rem;
  background: linear-gradient(180deg, transparent, rgba(8, 12, 10, 0.94));
  justify-items: start;
  text-align: left;
}
.ad-drop.has-preview .ad-drop-ico { display: none; }
.ad-drop-clear {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 4;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid rgba(238, 243, 239, 0.14);
  background: rgba(8, 12, 10, 0.78);
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.ad-drop-clear:hover {
  border-color: rgba(255, 123, 114, 0.45);
  color: #ff7b72;
  background: rgba(255, 123, 114, 0.12);
}
.ad-drop-remove { margin-top: 0.15rem; }
.ad-form-page,
.ad-detail-page {
  display: grid;
  gap: 1rem;
  width: 100%;
  max-width: none;
}
.ad-form-page .form-stack {
  margin-top: 0.35rem;
}
.ad-form-grid {
  display: grid;
  gap: 0.9rem 1rem;
  grid-template-columns: 1fr;
  align-items: start;
}
.ad-form-grid > input[type="hidden"] {
  display: none;
}
.ad-form-grid > * { min-width: 0; }
.ad-form-grid > label:not(.check):not(.ad-switch) {
  align-content: start;
}
.ad-form-grid > label:not(.check):not(.ad-switch) input,
.ad-form-grid > label:not(.check):not(.ad-switch) select {
  height: auto;
  align-self: start;
  min-height: 0;
}
.ad-form-span,
.ad-form-grid > .ad-form-actions,
.ad-form-grid > .ad-drop-row,
.ad-form-grid > .check,
.ad-form-grid > textarea,
.ad-form-full {
  grid-column: 1 / -1;
}
/* Switch label must not stretch — empty space on the right would still toggle */
.ad-form-grid > .ad-switch,
.ad-form-page .form-stack > .ad-switch {
  width: max-content;
  max-width: 100%;
  justify-self: start;
  align-self: center;
}
.ad-form-grid > .ad-switch.ad-form-full {
  grid-column: 1 / -1;
}
@media (min-width: 720px) {
  .ad-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ad-form-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .ad-form-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .ad-form-grid .ad-span-2 { grid-column: span 2; }
  .ad-form-grid-3 .ad-span-2 { grid-column: span 2; }
  .ad-form-grid-3 .ad-span-3,
  .ad-form-grid-4 .ad-span-4 { grid-column: 1 / -1; }
}

/* Site pages CMS */
.ad-page-cms .ad-page-block { margin-top: 1rem; }
.ad-page-tiles {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.85rem;
}
@media (min-width: 900px) {
  .ad-page-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.ad-page-tile {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(8, 12, 10, 0.35);
  padding: 0.85rem 0.9rem 1rem;
  min-width: 0;
}
.ad-page-tile-n {
  display: inline-block;
  margin-bottom: 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.ad-page-tile .ad-form-grid {
  margin: 0;
}
.ad-page-actions-bar {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}
.ad-form-page .form-stack label:not(.check):not(.ad-switch) {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(238, 243, 239, 0.72);
}
.ad-form-page .form-stack label:not(.check):not(.ad-switch) input,
.ad-form-page .form-stack label:not(.check):not(.ad-switch) select,
.ad-form-page .form-stack label:not(.check):not(.ad-switch) textarea {
  font-weight: 500;
  color: var(--ink);
}
.ad-page-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}
.ad-page-bar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}
.ad-inline-form { display: inline; margin: 0; }
.ad-detail-grid {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
}
.ad-detail-row {
  display: grid;
  grid-template-columns: minmax(110px, 140px) minmax(0, 1fr);
  gap: 0.5rem 1rem;
  align-items: start;
}
.ad-detail-row dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}
.ad-detail-row dd { margin: 0; word-break: break-word; }
.ad-detail-row--full {
  grid-template-columns: 1fr;
}
.ad-detail-body { line-height: 1.55; }
.ad-detail-qr {
  border-radius: 8px;
  background: #fff;
  padding: 0.5rem;
}
.btn.is-danger,
.btn-ghost.is-danger { color: #e85d5d; }
@media (max-width: 560px) {
  .ad-detail-row:not(.ad-detail-row--full) {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

/* Mobile / tablet: stacked record cards */
@media (max-width: 820px) {
  .ad-table-wrap,
  .ad-table-card .table-wrap,
  .theme-admin .table-wrap {
    overflow: hidden !important;
    overflow-x: hidden !important;
  }
  .ad-table {
    min-width: 0 !important;
    width: 100% !important;
    table-layout: auto;
    border-collapse: collapse;
  }
  .ad-table thead { display: none; }
  .ad-table tbody {
    display: grid;
    gap: 0.75rem;
    padding: 0.85rem;
  }
  .ad-table tbody tr {
    display: grid;
    gap: 0;
    padding: 0.15rem 0.85rem 0.85rem;
    border-radius: 16px;
    border: 1px solid rgba(238, 243, 239, 0.08);
    background:
      linear-gradient(160deg, rgba(26, 36, 32, 0.95), rgba(14, 18, 16, 0.98));
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  }
  .ad-table tbody tr:nth-child(even) td { background: transparent; }
  .ad-table tbody tr:hover td {
    background: transparent;
    box-shadow: none;
  }
  .ad-table tbody tr:hover td:first-child { box-shadow: none; }
  .ad-table td {
    display: grid;
    grid-template-columns: minmax(5.2rem, 32%) minmax(0, 1fr);
    align-items: start;
    gap: 0.55rem 0.75rem;
    padding: 0.7rem 0;
    border-bottom: 1px dashed rgba(238, 243, 239, 0.06);
  }
  .ad-table td:last-child { border-bottom: 0; padding-bottom: 0.15rem; }
  .ad-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding-top: 0.2rem;
  }
  .ad-table td[data-label="Documents"],
  .ad-table td[data-label="Actions"] {
    display: block;
    padding-top: 0.75rem;
    text-align: left;
    width: auto;
    min-width: 0;
    white-space: normal;
  }
  .ad-table td[data-label="Documents"]::before,
  .ad-table td[data-label="Actions"]::before {
    display: block;
    margin-bottom: 0.45rem;
    padding-top: 0;
    text-align: left;
  }
  .ad-table td[data-label="Actions"] {
    margin-top: 0.15rem;
    border-top: 1px solid rgba(238, 243, 239, 0.07);
    border-bottom: 0;
    padding-top: 0.85rem;
  }
  .ad-table td[data-label="Documents"] .ad-act,
  .ad-table td[data-label="Actions"] .ad-act {
    display: inline-flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
  }
  .ad-table td[data-label="Actions"] .ad-act-none {
    justify-content: flex-start;
    min-width: 0;
  }
  .ad-table td.ad-empty-row,
  .ad-table tr:has(.ad-empty-row) {
    display: block;
    text-align: center;
    padding: 1.8rem 1rem;
  }
  .ad-table td.ad-empty-row {
    display: block;
    border: 0;
    padding: 0.5rem;
  }
  .ad-table td.ad-empty-row::before { display: none; }
  .ad-mono { max-width: 100%; }
  .ad-ellipsis { max-width: 100%; white-space: normal; }
  .ad-toolbar-meta { width: 100%; }
  .ad-pop-form {
    left: 0;
    right: auto;
    width: min(280px, calc(100vw - 3rem));
  }
}

@media (max-width: 480px) {
  .ad-hello-title { font-size: clamp(1.25rem, 6.5vw, 1.55rem); }
  .ad-money-val { font-size: clamp(1.05rem, 5vw, 1.3rem); }
  .ad-money-card { padding: 0.8rem 0.85rem; }
  .ad-alert { padding: 0.8rem 0.85rem; gap: 0.65rem; }
  .ad-alert-ico { width: 36px; height: 36px; border-radius: 10px; }
  .ad-alert-body strong { font-size: 0.9rem; }
  .ad-stat { padding: 0.9rem 0.85rem; min-height: 0; }
  .ad-panel { padding: 0.95rem 0.85rem 1rem; }
  .ad-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ad-quick-item { padding: 0.65rem 0.55rem; font-size: 0.78rem; gap: 0.45rem; }
  .ad-quick-ico { width: 28px; height: 28px; border-radius: 8px; }
  .ad-activity-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.12rem;
  }
  .ad-activity-title { white-space: normal; }
  .ad-panel-head { flex-wrap: wrap; }
  .ad-toolbar { padding: 0.8rem; border-radius: 16px; }
  .ad-table-card { border-radius: 16px; }
  .admin-top {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.65rem;
  }
  .admin-top .page-title { font-size: 1.35rem; }
  .ad-pager {
    flex-direction: column;
    align-items: stretch;
  }
  .ad-pager-meta { text-align: left; }
  .ad-pager-nav {
    margin-left: 0;
    justify-content: flex-end;
    width: 100%;
  }
  .ad-pager-btn span { display: none; }
}

@media (min-width: 640px) {
  .ad-quick { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 720px) {
  .ad-alerts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .admin-mobile-bar,
  .admin-nav-scrim,
  .admin-nav-close { display: none !important; }
  .admin-frame {
    display: block;
  }
  .admin-side {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 60;
    width: 248px;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    padding: 1.35rem 1.1rem;
    border-bottom: 0;
    border-right: 1px solid var(--line);
    overflow: hidden;
    transform: none;
    visibility: visible;
    box-shadow: none;
    transition: none;
  }
  .admin-side-top { display: block; }
  body.is-admin-nav-open .admin-side {
    transform: none;
    visibility: visible;
  }
  .admin-main {
    margin-left: 248px;
    width: calc(100% - 248px);
    max-width: calc(100% - 248px);
    padding: 1.6rem 2rem 3rem;
    box-sizing: border-box;
  }
  .theme-admin.is-overview .admin-main {
    padding-top: 1.25rem;
  }
  .two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .admin-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ad-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ad-panels { grid-template-columns: 1fr; }
  .ad-alerts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ad-quick { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 899px) {
  body.is-admin-nav-open {
    overflow: hidden !important;
  }
  .admin-top-link { display: none; }
}
@media (min-width: 1100px) {
  .ad-panels {
    grid-template-columns: minmax(280px, 0.95fr) minmax(300px, 1.05fr);
    align-items: start;
    gap: 1.15rem;
  }
  .ad-panel-quick .ad-quick {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1280px) {
  .ad-panel-quick .ad-quick {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 1200px) {
  .ad-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ad-stat { min-height: 118px; }
}

@media (prefers-reduced-motion: reduce) {
  .ad-quick-item,
  .ad-alert,
  .ad-stat {
    transition: none !important;
  }
  .admin-side {
    transition: none !important;
  }
}

/* Admin form modal (adjust balance, etc.) */
.ad-modal {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
}
.ad-modal.hidden { display: none !important; }
.ad-modal.is-open {
  display: grid !important;
}
.ad-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 6, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: emFadeIn 0.22s ease both;
}
.ad-modal.is-leaving .ad-modal-backdrop { animation: emFadeOut 0.18s ease both; }
.ad-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  padding: 1.25rem 1.2rem 1.15rem;
  border-radius: 22px;
  border: 1px solid rgba(61, 207, 142, 0.2);
  background:
    radial-gradient(120% 80% at 10% 0%, rgba(61, 207, 142, 0.12), transparent 55%),
    linear-gradient(165deg, #1a2420, #101612);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.5);
  animation: emPopIn 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.ad-modal.is-leaving .ad-modal-dialog { animation: emPopOut 0.18s ease both; }
.ad-modal-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: start;
  margin-bottom: 1rem;
}
.ad-modal-head h2 {
  margin: 0;
  font-size: 1.15rem;
}
.ad-modal-sub {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
}
.ad-modal-ico {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: rgba(61, 207, 142, 0.12);
  border: 1px solid rgba(61, 207, 142, 0.22);
}
.ad-modal-ico.is-danger {
  color: var(--danger);
  background: rgba(255, 123, 114, 0.12);
  border-color: rgba(255, 123, 114, 0.28);
}
.ad-modal-ico.is-ok {
  color: var(--accent);
  background: rgba(61, 207, 142, 0.12);
  border-color: rgba(61, 207, 142, 0.22);
}
.ad-modal-field textarea {
  width: 100%;
  min-height: 88px;
  resize: vertical;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  color: var(--ink);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  font: inherit;
}
.ad-modal-field textarea:focus {
  outline: 2px solid rgba(61, 207, 142, 0.3);
  border-color: var(--accent);
}
.ad-modal-actions .em-btn-danger,
.btn.em-btn-danger {
  background: linear-gradient(135deg, #ff8f86, #ff7b72 55%, #e2554c);
  border-color: transparent;
  color: #1a0a08;
}
.ad-modal-actions .em-btn-danger:hover,
.btn.em-btn-danger:hover {
  filter: brightness(1.05);
}
.ad-modal-x {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(8, 12, 10, 0.45);
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.ad-modal-x:hover {
  color: var(--ink);
  border-color: rgba(61, 207, 142, 0.35);
}
.ad-modal-user {
  display: grid;
  gap: 0.15rem;
  padding: 0.8rem 0.9rem;
  margin-bottom: 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
}
.ad-modal-user-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
}
.ad-modal-user strong {
  font-size: 1rem;
}
.ad-modal-user-bal {
  font-size: 0.82rem;
}
.ad-modal-user-bal b {
  color: var(--accent);
  font-weight: 700;
}
.ad-modal-form {
  display: grid;
  gap: 0.85rem;
}
.ad-modal-field {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}
.ad-modal-field[hidden] {
  display: none !important;
}
.ad-modal-field select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0c1210;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
}
.ad-modal-field input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0c1210;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
}
.ad-modal-field input:focus {
  outline: none;
  border-color: rgba(61, 207, 142, 0.5);
  box-shadow: 0 0 0 3px rgba(61, 207, 142, 0.12);
}
.ad-modal-field small {
  font-weight: 500;
}
.ad-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-top: 0.25rem;
  align-items: stretch;
}
.ad-modal-actions .btn {
  min-height: 2.75rem;
  height: auto;
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 14px;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* KYC review modal */
.ad-kyc-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2300 !important;
  display: grid;
  place-items: center;
  padding: 1rem;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  margin: 0;
  width: auto;
  max-width: none;
}
.ad-kyc-modal.hidden { display: none !important; }
.ad-kyc-modal.is-open {
  display: grid !important;
  place-items: center;
}
.ad-kyc-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 6, 0.62);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  animation: emFadeIn 0.22s ease both;
}
.ad-kyc-modal.is-leaving .ad-kyc-backdrop { animation: emFadeOut 0.18s ease both; }
.ad-kyc-dialog {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100vw - 1.5rem));
  max-height: min(94dvh, 920px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border-radius: 22px;
  border: 1px solid rgba(61, 207, 142, 0.2);
  background:
    radial-gradient(90% 60% at 0% 0%, rgba(61, 207, 142, 0.1), transparent 50%),
    linear-gradient(165deg, #1a2420, #0f1412);
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  animation: emPopIn 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.ad-kyc-modal.is-leaving .ad-kyc-dialog { animation: emPopOut 0.18s ease both; }
.ad-kyc-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.15rem;
  border-bottom: 1px solid rgba(238, 243, 239, 0.08);
}
.ad-kyc-eyebrow {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 750;
}
.ad-kyc-head h2 {
  margin: 0.15rem 0 0;
  font-size: 1.2rem;
}
.ad-kyc-body {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(260px, 0.7fr);
  min-height: 0;
  height: 100%;
  overflow: hidden;
  align-items: stretch;
}
.ad-kyc-docs {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.95rem 1.1rem 1.1rem;
  min-width: 0;
  min-height: 0;
  height: 100%;
  align-self: stretch;
  border-right: 1px solid rgba(238, 243, 239, 0.08);
}
.ad-kyc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.ad-kyc-tab {
  appearance: none;
  border: 1px solid rgba(238, 243, 239, 0.1);
  background: rgba(0, 0, 0, 0.25);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.42rem 0.85rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.ad-kyc-tab:hover { color: var(--ink); border-color: rgba(61, 207, 142, 0.28); }
.ad-kyc-tab.is-active {
  color: #fff;
  background: linear-gradient(135deg, #5ee0a4, var(--accent));
  border-color: transparent;
}
.ad-kyc-tab:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.ad-kyc-viewer {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0.55rem;
  min-height: 0;
  height: 100%;
}
.ad-kyc-toolbar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.ad-kyc-zoom-label {
  min-width: 3.2rem;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.ad-kyc-stage {
  position: relative;
  min-height: 280px;
  height: 100%;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  border: 1.5px dashed rgba(61, 207, 142, 0.42);
  background:
    linear-gradient(165deg, rgba(61, 207, 142, 0.09), transparent 48%),
    radial-gradient(circle at 50% 42%, rgba(61, 207, 142, 0.08), transparent 55%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 10px,
      rgba(61, 207, 142, 0.035) 10px,
      rgba(61, 207, 142, 0.035) 11px
    ),
    #0c1410;
  box-shadow: inset 0 0 0 1px rgba(61, 207, 142, 0.06);
}
.ad-kyc-stage::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 14px;
  border: 1px dashed rgba(61, 207, 142, 0.18);
  pointer-events: none;
  z-index: 0;
}
.ad-kyc-stage.has-doc {
  border-style: solid;
  border-color: rgba(61, 207, 142, 0.28);
  background:
    linear-gradient(165deg, rgba(61, 207, 142, 0.14), transparent 48%),
    radial-gradient(circle at 50% 42%, rgba(61, 207, 142, 0.12), transparent 55%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 10px,
      rgba(61, 207, 142, 0.05) 10px,
      rgba(61, 207, 142, 0.05) 11px
    ),
    #0c1410;
}
.ad-kyc-stage.has-doc::before { opacity: 0.35; }
.ad-kyc-stage.is-dragging { cursor: grabbing; }
.ad-kyc-pan {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  transform-origin: center center;
  will-change: transform;
  padding: 1.1rem;
  margin: 0;
}
.ad-kyc-pan img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  margin: 0 auto;
  user-select: none;
  -webkit-user-drag: none;
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  background: rgba(255, 255, 255, 0.03);
  opacity: 1;
  transition: opacity 0.18s ease;
}
.ad-kyc-pan img.is-loading,
.ad-kyc-pan img[hidden] {
  opacity: 0;
  visibility: hidden;
}
.ad-kyc-loading {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.65rem;
  margin: 0;
  padding: 1.5rem;
  font-size: 0.86rem;
  font-weight: 650;
  color: rgba(238, 243, 239, 0.85);
  background: rgba(8, 12, 10, 0.55);
  pointer-events: none;
}
.ad-kyc-loading[hidden] {
  display: none !important;
}
.ad-kyc-spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2.5px solid rgba(61, 207, 142, 0.18);
  border-top-color: var(--accent);
  animation: adKycSpin 0.7s linear infinite;
}
@keyframes adKycSpin {
  to { transform: rotate(360deg); }
}
.ad-kyc-empty {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.55rem;
  margin: 0;
  padding: 1.5rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(238, 243, 239, 0.78);
  background:
    linear-gradient(165deg, rgba(61, 207, 142, 0.08), transparent 55%),
    rgba(8, 12, 10, 0.55);
  pointer-events: none;
}
.ad-kyc-empty[hidden] {
  display: none !important;
}
.ad-kyc-empty::before {
  content: "";
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 1.5px dashed rgba(61, 207, 142, 0.45);
  background:
    linear-gradient(165deg, rgba(61, 207, 142, 0.14), transparent 60%),
    rgba(0, 0, 0, 0.25);
  box-shadow: 0 0 0 6px rgba(61, 207, 142, 0.06);
}
.ad-kyc-hint {
  margin: 0;
  font-size: 0.72rem;
}
.ad-kyc-side {
  display: flex;
  flex-direction: column;
  align-content: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  background: rgba(0, 0, 0, 0.16);
}
.ad-kyc-side-scroll {
  flex: 1 1 auto;
  display: grid;
  align-content: start;
  gap: 0.9rem;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 1rem 0.55rem 1rem 1.05rem;
  scrollbar-gutter: stable;
}
.ad-kyc-foot {
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
  padding: 0.85rem 1.05rem calc(1.85rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(238, 243, 239, 0.1);
  background:
    linear-gradient(180deg, rgba(16, 22, 18, 0.4), rgba(10, 14, 12, 0.98));
  box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.18);
}
.ad-kyc-section {
  display: grid;
  gap: 0.45rem;
}
.ad-kyc-section-title {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 750;
  color: rgba(143, 163, 153, 0.9);
}
.ad-kyc-profile {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
}
.ad-kyc-avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-family: var(--display);
  color: #fff;
  background: linear-gradient(145deg, #5ee0a4, var(--accent) 55%, #2aa86f);
}
.ad-kyc-profile strong { display: block; line-height: 1.2; }
.ad-kyc-profile small { display: block; margin-top: 0.15rem; word-break: break-all; }
.ad-kyc-facts {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(238, 243, 239, 0.08);
  background: rgba(0, 0, 0, 0.22);
}
.ad-kyc-facts > div { display: grid; gap: 0.12rem; }
.ad-kyc-facts dt {
  margin: 0;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 750;
}
.ad-kyc-facts dd {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  word-break: break-word;
}
.ad-kyc-fact-full dd {
  white-space: pre-wrap;
  line-height: 1.4;
}
.ad-kyc-note-box {
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(232, 194, 122, 0.25);
  background: rgba(232, 194, 122, 0.08);
}
.ad-kyc-note-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 750;
  margin-bottom: 0.25rem;
}
.ad-kyc-note-box p { margin: 0; font-size: 0.86rem; line-height: 1.45; }
.ad-kyc-actions { display: grid; gap: 0.65rem; }
.ad-kyc-actions[hidden],
.ad-kyc-readonly[hidden] { display: none !important; }
.ad-kyc-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  align-items: stretch;
}
.ad-kyc-btn-row form {
  display: flex;
  min-width: 0;
}
.ad-kyc-approve,
.ad-kyc-reject {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.ad-kyc-reject-form {
  display: grid;
  gap: 0.55rem;
}
.ad-kyc-foot .ad-modal-field textarea {
  min-height: 64px;
}
.ad-kyc-readonly { margin: 0; font-size: 0.82rem; }
@media (max-width: 860px) {
  .ad-kyc-body {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }
  .ad-kyc-docs {
    border-right: 0;
    border-bottom: 1px solid rgba(238, 243, 239, 0.08);
  }
  .ad-kyc-side {
    height: auto;
    max-height: none;
    overflow: visible;
  }
  .ad-kyc-side-scroll {
    flex: 0 0 auto;
    overflow: visible;
  }
  .ad-kyc-foot {
    position: sticky;
    bottom: 0;
    border-radius: 0;
    padding-bottom: calc(1.75rem + env(safe-area-inset-bottom, 0px));
  }
  .ad-kyc-stage {
    height: min(48dvh, 420px);
    min-height: 280px;
  }
  .ad-kyc-dialog { max-height: 96dvh; }
}

/* Earnora custom modals */
html.em-open, body.em-open { overflow: hidden; }

.em-root {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
}
.em-root.hidden { display: none; }

.em-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 6, 0.38);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: emFadeIn 0.25s ease both;
}
.em-root.is-leaving .em-backdrop { animation: emFadeOut 0.2s ease both; }

.em-dialog {
  position: relative;
  width: min(100%, 360px);
  padding: 1.5rem 1.35rem 1.25rem;
  border-radius: 24px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(61, 207, 142, 0.12), transparent 55%),
    linear-gradient(165deg, #1a2420, #101612);
  border: 1px solid rgba(238, 243, 239, 0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  text-align: center;
  animation: emPopIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.em-root.is-leaving .em-dialog { animation: emPopOut 0.2s ease both; }

.em-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 0.85rem;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: rgba(61, 207, 142, 0.1);
  color: var(--accent);
}
.em-icon-success { color: var(--accent); background: rgba(61, 207, 142, 0.12); }
.em-icon-error { color: var(--danger); background: rgba(255, 123, 114, 0.12); }
.em-icon-warning { color: var(--accent-2); background: rgba(232, 194, 122, 0.12); }
.em-icon-confirm { color: var(--accent); }

.em-ring {
  opacity: 0.35;
  transform-origin: center;
  animation: emRing 0.55s ease both;
}
.em-draw {
  stroke-dasharray: 64;
  stroke-dashoffset: 64;
  animation: emDraw 0.55s 0.15s ease forwards;
}

.em-title {
  font-family: var(--display);
  font-size: 1.35rem;
  margin: 0 0 0.4rem;
  letter-spacing: -0.03em;
}
.em-body {
  margin: 0 0 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}
.em-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  align-items: stretch;
}
.em-actions:has(.em-btn-wide) { grid-template-columns: 1fr; }
.em-actions .btn,
.em-btn {
  min-height: 2.75rem;
  height: auto;
  width: 100%;
  max-width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 14px;
  border: 1px solid var(--accent);
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  line-height: 1.25;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.em-btn.btn-ghost { border-color: var(--line); }
.em-btn-wide { width: 100%; }
.em-btn-danger {
  background: linear-gradient(135deg, #ff8a82, #e85b55);
  color: #2a0d0b;
  border: 1px solid #e85b55;
}

.em-type-success .em-dialog {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(61, 207, 142, 0.2), transparent 55%),
    linear-gradient(165deg, #1a2a22, #101612);
}
.em-type-error .em-dialog {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 123, 114, 0.16), transparent 55%),
    linear-gradient(165deg, #2a1a1a, #141010);
}
.em-type-warning .em-dialog {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(232, 194, 122, 0.16), transparent 55%),
    linear-gradient(165deg, #2a2418, #14120e);
}

@keyframes emFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes emFadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes emPopIn {
  from { opacity: 0; transform: translateY(18px) scale(0.92); }
  to { opacity: 1; transform: none; }
}
@keyframes emPopOut {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translateY(12px) scale(0.96); }
}
@keyframes emRing {
  from { opacity: 0; transform: scale(0.7); }
  to { opacity: 0.35; transform: scale(1); }
}
@keyframes emDraw {
  to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .em-backdrop, .em-dialog, .em-ring, .em-draw { animation: none !important; }
  .em-draw { stroke-dashoffset: 0; }
}

/* Custom animated select */
.es-wrap {
  position: relative;
  width: 100%;
  z-index: 1;
}
.es-wrap.is-open {
  z-index: 50;
}
.es-native {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  clip: rect(0 0 0 0) !important;
}
.es-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease,
    transform 0.18s ease;
}
.es-trigger:hover {
  border-color: rgba(61, 207, 142, 0.4);
}
.es-trigger:active {
  transform: scale(0.985);
}
.es-wrap.is-open .es-trigger,
.es-trigger:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(61, 207, 142, 0.22);
  background: #0e1411;
}
.es-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.es-wrap.es-empty .es-label { color: var(--muted); }
.es-chevron {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.2s ease,
    background 0.2s ease;
  flex-shrink: 0;
}
.es-wrap.is-open .es-chevron {
  transform: rotate(180deg);
  color: var(--accent);
  background: rgba(61, 207, 142, 0.12);
}

.es-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 80;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px) scale(0.96);
  transform-origin: top center;
  pointer-events: none !important;
  visibility: hidden;
  border-radius: 14px;
  padding: 0;
  background:
    linear-gradient(180deg, rgba(61, 207, 142, 0.08), transparent 28%),
    linear-gradient(165deg, #1e2b25, #101714);
  border: 1px solid transparent;
  box-shadow: none;
  transition:
    max-height 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.22s ease,
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.2s ease,
    box-shadow 0.25s ease,
    padding 0.2s ease,
    visibility 0s linear 0.32s;
}
.es-panel.es-up {
  transform: translateY(10px) scale(0.96);
  transform-origin: bottom center;
  background:
    linear-gradient(0deg, rgba(61, 207, 142, 0.08), transparent 28%),
    linear-gradient(165deg, #1e2b25, #101714);
}
.es-panel.is-open {
  max-height: 280px;
  overflow-y: auto;
  opacity: 1;
  transform: none;
  pointer-events: auto !important;
  visibility: visible;
  transition-delay: 0s;
  padding: 0.35rem;
  border-color: rgba(61, 207, 142, 0.32);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 20px 48px rgba(0, 0, 0, 0.5),
    0 0 32px rgba(61, 207, 142, 0.08);
  scrollbar-width: none;
}
.es-panel.is-open::-webkit-scrollbar { display: none; width: 0; }
.es-portal {
  position: absolute;
  width: 0;
  height: 0;
  overflow: visible;
  z-index: 2400;
  pointer-events: none;
}
.es-portal .es-panel.is-open {
  pointer-events: auto;
  z-index: 2401;
}

.es-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.72rem 0.85rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-4px);
  transition: background 0.15s ease, color 0.15s ease, opacity 0.2s ease, transform 0.2s ease;
}
.es-panel.is-open .es-option {
  opacity: 1;
  transform: none;
  animation: esOptIn 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.es-panel.is-open .es-option:nth-child(1) { animation-delay: 0.02s; }
.es-panel.is-open .es-option:nth-child(2) { animation-delay: 0.05s; }
.es-panel.is-open .es-option:nth-child(3) { animation-delay: 0.08s; }
.es-panel.is-open .es-option:nth-child(4) { animation-delay: 0.11s; }
.es-panel.is-open .es-option:nth-child(5) { animation-delay: 0.14s; }
.es-panel.is-open .es-option:nth-child(6) { animation-delay: 0.17s; }
.es-panel.is-open .es-option:nth-child(n+7) { animation-delay: 0.2s; }

@keyframes esOptIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.es-option:hover,
.es-option:focus-visible {
  outline: none;
  background: rgba(61, 207, 142, 0.12);
  color: #fff;
}
.es-option.is-selected {
  background: rgba(61, 207, 142, 0.14);
  color: var(--accent);
}
.es-option.is-selected:hover,
.es-option.is-selected:focus-visible {
  background: rgba(61, 207, 142, 0.2);
  color: #7dffc0;
}
.es-option:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.es-check {
  opacity: 0;
  transform: scale(0.5) rotate(-12deg);
  color: var(--accent);
  transition: opacity 0.18s ease, transform 0.28s cubic-bezier(0.34, 1.4, 0.64, 1);
  flex-shrink: 0;
}
.es-option.is-selected .es-check {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

label .es-wrap { margin-top: 0.3rem; }

@media (prefers-reduced-motion: reduce) {
  .es-panel, .es-chevron, .es-check, .es-trigger, .es-option { transition: none !important; }
  .es-panel.is-open .es-option { animation: none !important; opacity: 1; transform: none; }
}

/* ——— Admin settings ——— */
.ad-settings {
  gap: 1.1rem;
}
.ad-settings-tabs {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.2rem;
  overflow-x: auto;
  padding: 0.28rem;
  margin: 0 0 0.15rem;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 40%),
    rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(61, 207, 142, 0.12);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.ad-settings-tabs::-webkit-scrollbar { display: none; }
.ad-settings-tab-pill {
  position: absolute;
  top: 0.28rem;
  left: 0;
  height: calc(100% - 0.56rem);
  min-width: 2.5rem;
  border-radius: 12px;
  background: linear-gradient(145deg, #5ee0a4, var(--accent));
  box-shadow: 0 8px 20px rgba(61, 207, 142, 0.28);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), width 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 0;
}
.ad-settings-tab {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.55rem 1rem;
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.22s ease, transform 0.22s ease;
}
.ad-settings-tab:hover {
  color: var(--ink);
}
.ad-settings-tab.is-active {
  color: #fff;
}
.ad-settings-tab:focus-visible {
  outline: 2px solid rgba(61, 207, 142, 0.55);
  outline-offset: 2px;
}
.ad-settings-panels {
  display: grid;
  gap: 1rem;
  min-width: 0;
}
.ad-settings-panel {
  display: grid;
  gap: 1rem;
  min-width: 0;
}
.ad-settings-panel[hidden] {
  display: none !important;
}
.ad-settings-panel.is-entering {
  animation: adSettingsPanelIn 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes adSettingsPanelIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.992);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ad-settings-tab-pill { transition: none; }
  .ad-settings-panel.is-entering { animation: none; }
}
.ad-settings-layout {
  display: grid;
  gap: 1rem;
  align-items: start;
  width: 100%;
  min-width: 0;
}
@media (min-width: 1080px) {
  .ad-settings-layout {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
  }
  .ad-settings-side {
    position: sticky;
    top: 1rem;
  }
}
.ad-settings-main,
.ad-settings-side {
  display: grid;
  gap: 1rem;
  min-width: 0;
}
.ad-settings-form {
  margin: 0;
  display: grid;
  gap: 1rem;
}
.ad-settings-mobile-save {
  display: none;
}
@media (max-width: 1079px) {
  .ad-settings-mobile-save { display: block; }
  .ad-settings-save-card { display: none; }
}
.ad-settings-steps {
  margin: 0 0 1rem;
  padding: 0.75rem 0.85rem 0.75rem 1.7rem;
  border-radius: 14px;
  border: 1px solid rgba(61, 207, 142, 0.16);
  background: rgba(61, 207, 142, 0.06);
  color: rgba(238, 243, 239, 0.78);
  font-size: 0.82rem;
  line-height: 1.45;
}
.ad-settings-steps li + li { margin-top: 0.28rem; }
.ad-settings-note {
  margin: -0.25rem 0 1rem;
  font-size: 0.82rem;
  line-height: 1.4;
}
.ad-settings-note a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.ad-settings-note a:hover { text-decoration: underline; }
.ad-settings-gateway.is-bybit .ad-settings-webhook {
  border-color: rgba(247, 166, 0, 0.22);
  background: rgba(247, 166, 0, 0.06);
}
.ad-settings-webhook {
  display: grid;
  gap: 0.55rem;
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(61, 207, 142, 0.18);
  background: rgba(12, 18, 16, 0.55);
}
.ad-settings-webhook-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
}
.ad-settings-webhook-meta strong {
  font-size: 0.84rem;
  font-weight: 650;
}
.ad-settings-webhook-meta .muted { font-size: 0.76rem; }
.ad-settings-webhook-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}
.ad-settings-webhook-row .ad-mono {
  flex: 1 1 12rem;
  min-width: 0;
}
.ad-settings-tests {
  display: grid;
  gap: 0.5rem;
}
.ad-settings-save-hint {
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
  line-height: 1.35;
  text-align: center;
}
.ad-settings-status-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.ad-settings-status-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(12, 18, 16, 0.45);
  font-size: 0.86rem;
  font-weight: 560;
}
.ad-settings-log {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  max-height: min(28rem, 55vh);
  overflow: auto;
}
.ad-settings-log li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.85rem 1.25rem;
  padding: 0.75rem 0.15rem;
  border-bottom: 1px solid rgba(238, 243, 239, 0.06);
}
.ad-settings-log li:last-child { border-bottom: 0; }
.ad-settings-log-main {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}
.ad-settings-log-main strong {
  font-size: 0.9rem;
  font-weight: 650;
  word-break: break-word;
}
.ad-settings-log-main small {
  display: block;
  word-break: break-word;
  line-height: 1.35;
}
.ad-settings-log time {
  flex-shrink: 0;
  font-size: 0.74rem;
  white-space: nowrap;
}
.ad-settings-empty {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
}
@media (max-width: 640px) {
  .ad-settings-log li {
    flex-direction: column;
    gap: 0.35rem;
  }
  .ad-settings-log time { white-space: normal; }
}

.ad-pay-modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  position: relative;
  z-index: 5;
}
.ad-pay-mode {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.35rem;
  text-align: left;
  padding: 1rem 1rem 0.95rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(12, 18, 16, 0.55);
  color: var(--ink);
  cursor: pointer;
  pointer-events: auto;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
  margin: 0;
  font: inherit;
  font-weight: inherit;
  -webkit-user-select: none;
  user-select: none;
}
.ad-pay-mode input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}
.ad-pay-mode:hover {
  border-color: rgba(61, 207, 142, 0.35);
  background: rgba(61, 207, 142, 0.05);
}
.ad-pay-mode.is-on,
.ad-pay-mode:has(input:checked) {
  border-color: rgba(61, 207, 142, 0.55);
  background: linear-gradient(165deg, rgba(61, 207, 142, 0.14), rgba(12, 18, 16, 0.4));
  box-shadow: 0 0 0 1px rgba(61, 207, 142, 0.12);
}
.ad-pay-mode-ico {
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(61, 207, 142, 0.1);
  color: var(--accent);
  margin-bottom: 0.15rem;
}
.ad-pay-mode strong {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.ad-pay-mode > .muted {
  font-size: 0.8rem;
  line-height: 1.4;
  margin: 0;
}
.ad-pay-mode-tag {
  margin-top: 0.35rem;
  width: fit-content;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(61, 207, 142, 0.95);
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: rgba(61, 207, 142, 0.1);
  border: 1px solid rgba(61, 207, 142, 0.18);
}
.ad-pay-mode:not(.is-on) .ad-pay-mode-tag {
  color: var(--muted);
  background: rgba(238, 243, 239, 0.04);
  border-color: rgba(238, 243, 239, 0.08);
}
.ad-pay-flow {
  margin: 0;
  padding: 0.85rem 0.95rem 0.85rem 1.7rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(12, 18, 16, 0.45);
  font-size: 0.88rem;
  line-height: 1.5;
}
.ad-pay-flow li + li { margin-top: 0.35rem; }
.ad-pay-flow a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.ad-pay-flow a:hover { text-decoration: underline; }
.ad-pay-api-wrap {
  display: grid;
  gap: 1rem;
}
.ad-pay-tests {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}
.ad-pay-savebar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1.05rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, #161e1a, #121816);
}
.ad-pay-savebar .muted { margin: 0; font-size: 0.84rem; }
.ad-pay-savebar strong { color: var(--ink); }
@media (max-width: 720px) {
  .ad-pay-modes { grid-template-columns: 1fr; }
  .ad-pay-tests { grid-template-columns: 1fr; }
  .ad-pay-savebar { flex-direction: column; align-items: stretch; }
  .ad-pay-savebar .btn { width: 100%; }
}

.ad-pm-credit-label {
  margin: 0 0 0.55rem;
  font-size: 0.88rem;
  font-weight: 650;
  color: rgba(238, 243, 239, 0.72);
}
[data-pm-credit-wrap] {
  position: relative;
  z-index: 5;
}
.ad-pm-type-field {
  position: relative;
  z-index: 1;
  margin: 0 0 1.1rem !important;
  width: 100%;
  max-width: none;
}
.ad-pm-type-field label {
  display: grid;
  gap: 0.35rem;
  width: 100%;
}
.ad-pm-type-field select {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box;
}
.ad-pm-api-box {
  margin-top: 1.1rem;
  padding: 1.05rem 1.1rem 1.15rem;
  border-radius: 16px;
  border: 1px solid rgba(61, 207, 142, 0.22);
  background: rgba(12, 18, 16, 0.55);
  width: 100%;
  min-width: 0;
}
.ad-pm-api-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.95rem;
}
.ad-pm-api-head strong {
  font-size: 0.92rem;
  font-weight: 700;
}
.ad-pm-api-head .muted {
  font-size: 0.78rem;
}
.ad-pm-api-grid {
  margin: 0 !important;
  width: 100%;
  max-width: none !important;
  display: grid;
  gap: 0.9rem 1rem;
  grid-template-columns: 1fr;
}
.ad-pm-api-grid.hidden,
.ad-pm-api-box.hidden {
  display: none !important;
}
@media (min-width: 720px) {
  .ad-pm-api-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.ad-pm-api-grid > .ad-form-full,
.ad-pm-api-grid > .ad-switch {
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
}
.ad-pm-api-grid label:not(.ad-switch) {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  width: 100%;
}
.ad-pm-api-grid label:not(.ad-switch) input {
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  box-sizing: border-box;
}
.ad-pm-wallet-banner {
  margin: 0.85rem 0 0;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(12, 18, 16, 0.45);
  font-size: 0.86rem;
  line-height: 1.4;
}
.ad-payments .ad-form-grid label:not(.check):not(.ad-switch) {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}
.ad-payments .ad-form-grid label:not(.check):not(.ad-switch) input,
.ad-payments .ad-form-grid label:not(.check):not(.ad-switch) select,
.ad-payments .ad-form-grid label:not(.check):not(.ad-switch) textarea {
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 821px) {
  .ad-payments .ad-table th.ad-pm-col-method,
  .ad-payments .ad-table td[data-label="Method"] {
    width: 10.5rem !important;
    max-width: 11.5rem !important;
  }
  .ad-payments .ad-table th.ad-pm-col-address,
  .ad-payments .ad-table td[data-label="Address"] {
    width: auto !important;
    min-width: 0 !important;
  }
  .ad-payments .ad-table th.ad-th-actions,
  .ad-payments .ad-table td.ad-td-actions {
    width: 12.5rem !important;
    min-width: 12.5rem !important;
  }
  .ad-payments .ad-table td[data-label="Address"] .ad-mono {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
  }
  .ad-payments .ad-user-cell {
    max-width: 100%;
  }
  .ad-payments .ad-user-cell > span:last-child {
    min-width: 0;
    overflow: hidden;
  }
  .ad-payments .ad-user-cell strong,
  .ad-payments .ad-user-cell small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* cache: 20260927-pm-actions-fit */

/* —— Cryptomus / Crypto Pay —— */
.cm-entry { margin-bottom: 1rem; }
.cm-manual { opacity: 0.98; }
.cm-pay {
  max-width: 440px;
  margin: 0 auto;
  padding: 0.65rem 1rem 1.5rem;
}
.cm-pay-back { margin: 0; }
.cm-pay-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}
.cm-pay-cancel { margin: 0; }
.cm-pay-cancel .btn { min-height: 0; }
.cm-pay-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 1.1rem 1.05rem 1.15rem;
  background:
    radial-gradient(110% 80% at 100% -10%, rgba(61, 207, 142, 0.16), transparent 55%),
    linear-gradient(165deg, #15201b 0%, #101714 50%, #0e1411 100%);
  border: 1px solid rgba(61, 207, 142, 0.2);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.3);
}
.cm-pay-glow { display: none; }
.cm-pay-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.75rem;
  position: relative;
}
.cm-net-banner {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.85rem;
  margin-bottom: 0.75rem;
  border-radius: 14px;
  background: rgba(61, 207, 142, 0.08);
  border: 1px solid rgba(61, 207, 142, 0.22);
}
.cm-net-banner-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}
.cm-net-banner-money { display: none; }
.cm-net-banner-ico {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  display: block;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.cm-net-banner-token {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  margin-left: 0.15rem;
  flex-shrink: 0;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}
.cm-net-banner-net {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: 0;
  text-align: left;
  padding-left: 0.65rem;
  border-left: 1px solid rgba(238, 243, 239, 0.1);
}
.cm-net-banner-net img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
}
.cm-net-banner-net .muted,
.cm-net-banner-stat .muted,
.cm-net-banner-text .muted,
.cm-net-banner-amt .muted {
  display: block;
  margin: 0;
  font-size: 0.68rem;
  color: #a8b8ae !important;
}
.cm-net-banner-net strong,
.cm-net-banner-stat strong,
.cm-net-banner-text strong,
.cm-net-banner-amt strong {
  display: block;
  margin-top: 0.05rem;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.cm-net-banner-amt {
  margin-left: auto;
  text-align: right;
  min-width: 0;
  padding-left: 0.65rem;
  border-left: 1px solid rgba(238, 243, 239, 0.1);
}
.cm-net-banner-amt strong {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.cm-net-banner-fallback {
  display: grid;
  place-items: center;
  background: rgba(61, 207, 142, 0.18);
  color: var(--accent);
  font-size: 0.95rem;
  border-radius: 50%;
}
.cm-net-banner-text { min-width: 0; }
.cm-net-banner-stat { display: none; }
.cm-send-exact {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.cm-token-ico {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cm-pay-head-text { min-width: 0; }
.cm-pay-head h1 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.cm-pay-head p {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  color: #a8b8ae !important;
}
.cm-pay-ico {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(61, 207, 142, 0.12);
  border: 1px solid rgba(61, 207, 142, 0.22);
  flex-shrink: 0;
}
.cm-pay-ico img { display: block; border-radius: 8px; }
.cm-pay-status { margin: 0; }
.cm-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}
.cm-pill-clock {
  flex-shrink: 0;
  display: block;
  opacity: 0.9;
}
.cm-pill-timer {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  opacity: 0.95;
  line-height: 1;
  letter-spacing: 0.02em;
}
.cm-pill.is-wait {
  background: rgba(232, 194, 122, 0.14);
  color: #e8c27a;
  border: 1px solid rgba(232, 194, 122, 0.28);
}
.cm-pill.is-ok {
  background: rgba(61, 207, 142, 0.14);
  color: var(--accent);
  border: 1px solid rgba(61, 207, 142, 0.28);
}
.cm-pill.is-bad {
  background: rgba(255, 123, 114, 0.14);
  color: var(--danger);
  border: 1px solid rgba(255, 123, 114, 0.28);
}
.cm-pay-amount {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
  margin-bottom: 0.85rem;
  position: relative;
}
.cm-pay-amount span,
.cm-pay-amount .muted {
  color: #a8b8ae !important;
  font-size: 0.9rem;
}
.cm-pay-amount strong {
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.cm-pay-box {
  position: relative;
  border-radius: 16px;
  padding: 0.9rem;
  border: 1px solid rgba(61, 207, 142, 0.16);
  background: rgba(0, 0, 0, 0.28);
  display: grid;
  gap: 0.85rem;
}
.cm-pay-box-wait {
  justify-items: center;
  text-align: center;
  padding: 1.4rem 0.9rem;
}
.cm-spinner {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid rgba(61, 207, 142, 0.2);
  border-top-color: var(--accent);
  animation: cmSpin 0.8s linear infinite;
  margin-bottom: 0.45rem;
}
@keyframes cmSpin { to { transform: rotate(360deg); } }
.cm-pay-main {
  display: contents;
}
.cm-pay-details {
  min-width: 0;
  display: grid;
  gap: 0.65rem;
}
.cm-pay-box-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}
.cm-pay-box-row .muted,
.cm-address-block .muted,
.cm-qr .muted {
  color: #a8b8ae !important;
  font-size: 0.88rem;
}
.cm-pay-box-row strong {
  color: var(--ink);
  font-size: 0.98rem;
  text-align: right;
}
.cm-address-block { display: grid; gap: 0.4rem; }
.cm-address-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  width: 100%;
}
.cm-address-input {
  flex: 1 1 auto;
  width: 0;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  height: 42px;
  margin: 0;
  padding: 0 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(238, 243, 239, 0.08);
  background: rgba(0, 0, 0, 0.35);
  color: var(--ink);
  font-size: 0.78rem;
  line-height: 42px;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  text-overflow: ellipsis;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.cm-address-input:focus {
  border-color: rgba(61, 207, 142, 0.4);
  text-overflow: clip;
}
.cm-address-block code,
.cm-address-row code {
  display: block;
  flex: 1 1 auto;
  width: 0;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.78rem;
  line-height: 1.3;
  padding: 0.7rem 0.75rem;
  border-radius: 10px;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(238, 243, 239, 0.08);
}
.cm-address-copy {
  flex: 0 0 auto;
  height: 42px;
  min-height: 42px;
  max-height: 42px;
  padding: 0 0.95rem !important;
  border-radius: 10px !important;
  font-weight: 700;
  white-space: nowrap;
  align-self: center;
}
.cm-qr {
  text-align: center;
  display: grid;
  gap: 0.35rem;
  justify-items: center;
}
.cm-qr-frame {
  display: grid;
  place-items: center;
  padding: 0.55rem;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}
.cm-qr-frame img {
  display: block;
  width: 168px;
  height: 168px;
  border-radius: 6px;
  background: #fff;
}
.cm-pay-done {
  text-align: center;
  padding: 0.5rem 0 0.25rem;
  position: relative;
}
.cm-pay-done .btn { margin-top: 0.75rem; }
.cm-expiry,
.cm-foot {
  margin: 0.7rem 0 0;
  font-size: 0.82rem;
  position: relative;
  line-height: 1.4;
  color: #a8b8ae !important;
  text-align: center;
}
.cm-pay-hero { display: none; }
.cm-pay-eyebrow { display: none; }
.cm-label { color: #a8b8ae; }

@media (max-width: 380px) {
  .cm-qr-frame img { width: 148px; height: 148px; }
}

/* ——— Admin editor (create / edit) ——— */
.ad-page-bar-lead {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.65rem 0.85rem;
  min-width: 0;
  flex: 1 1 auto;
}
.ad-page-title {
  min-width: 0;
}
.ad-page-title h1 {
  margin: 0;
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
}
.ad-page-title .muted {
  margin: 0.2rem 0 0;
  font-size: 0.84rem;
  line-height: 1.4;
}
.ad-page-title--with-ico {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.ad-pm-ico--lg {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex-shrink: 0;
}
.ad-field-hint {
  display: block;
  margin-top: 0.28rem;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.35;
}
.ad-editor-layout {
  display: grid;
  gap: 1rem;
  align-items: start;
  width: 100%;
  min-width: 0;
  margin: 0;
}
@media (min-width: 1080px) {
  .ad-editor-layout {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
  }
  .ad-editor-side {
    position: sticky;
    top: 1rem;
  }
  .ad-editor-mobile-save { display: none !important; }
}
.ad-editor-main,
.ad-editor-side {
  display: grid;
  gap: 1rem;
  min-width: 0;
}
.ad-editor-layout > .ad-editor-mobile-save {
  grid-column: 1 / -1;
}
@media (min-width: 1080px) {
  .ad-settings-save-card .btn + .btn-ghost { margin-top: 0.45rem; }
}
.ad-preview-card .ad-preview-body {
  display: grid;
  gap: 0.85rem;
}
.ad-preview-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  word-break: break-word;
}
.ad-preview-url {
  margin: -0.35rem 0 0;
  font-size: 0.78rem;
  word-break: break-all;
  line-height: 1.4;
}
.ad-preview-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0;
}
.ad-preview-stats > div {
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(238, 243, 239, 0.06);
}
.ad-preview-stats dt {
  margin: 0;
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 500;
}
.ad-preview-stats dd {
  margin: 0.15rem 0 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
}
.ad-preview-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
  border: 1px solid rgba(61, 207, 142, 0.22);
  background: linear-gradient(165deg, rgba(61, 207, 142, 0.12), rgba(12, 18, 16, 0.35));
}
.ad-preview-total strong {
  font-size: 1.05rem;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.ad-notice-preview .ad-preview-body-text {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.55;
  white-space: pre-wrap;
  max-height: 10rem;
  overflow: auto;
}
.ad-savebar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.ad-settings-save-note {
  margin: 0.65rem 0 0;
  font-size: 0.76rem;
  line-height: 1.4;
}
.ad-settings-shortcuts {
  display: grid;
  gap: 0.65rem;
}
.ad-settings-shortcut {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(12, 18, 16, 0.45);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.15s ease;
}
.ad-settings-shortcut:hover {
  border-color: rgba(61, 207, 142, 0.4);
  background: rgba(61, 207, 142, 0.06);
  transform: translateY(-1px);
}
.ad-settings-shortcut-ico {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(61, 207, 142, 0.1);
  color: var(--accent);
}
.ad-settings-shortcut strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--ink);
}
.ad-settings-shortcut small {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.76rem;
  line-height: 1.35;
}
.ad-settings-shortcut-go {
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--accent);
  white-space: nowrap;
}
.ad-log-table-wrap {
  margin-top: 0.35rem;
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
}
.ad-log-table-wrap .ad-table-wrap {
  border-radius: 14px;
}
.ad-panel .ad-pager {
  margin-top: 0.85rem;
}

/* ——— Admin detail / view ——— */
.ad-metric-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.65rem;
}
.ad-metric {
  padding: 0.85rem 0.95rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background:
    linear-gradient(165deg, rgba(61, 207, 142, 0.06), transparent 55%),
    rgba(12, 18, 16, 0.55);
  min-width: 0;
}
.ad-metric--accent {
  border-color: rgba(61, 207, 142, 0.35);
  background:
    linear-gradient(165deg, rgba(61, 207, 142, 0.14), rgba(12, 18, 16, 0.4));
}
.ad-metric--wide {
  grid-column: span 2;
}
@media (max-width: 560px) {
  .ad-metric--wide { grid-column: auto; }
}
.ad-metric-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 550;
  color: var(--muted);
  margin-bottom: 0.28rem;
}
.ad-metric-value {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  word-break: break-word;
  line-height: 1.3;
}
.ad-metric-value small {
  font-size: 0.72rem;
  font-weight: 550;
  color: var(--muted);
}
.ad-metric-link {
  font-size: 0.88rem;
  font-weight: 600;
}
.ad-metric-link a {
  color: var(--accent);
  text-decoration: none;
  word-break: break-all;
}
.ad-metric-link a:hover { text-decoration: underline; }
.ad-detail-cols {
  display: grid;
  gap: 1rem;
}
@media (min-width: 860px) {
  .ad-detail-cols {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }
}
.ad-detail-qr-panel {
  text-align: center;
}
.ad-detail-qr-panel .ad-detail-qr {
  margin: 0.25rem auto 0;
}
.ad-notice-article {
  padding: 0.15rem 0 0.25rem;
}
.ad-notice-article h3 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.ad-notice-article .ad-detail-body {
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(238, 243, 239, 0.88);
}

@media (max-width: 1079px) {
  .ad-editor-side .ad-settings-save-card { display: none; }
}

/* ——— Admin user view ——— */
.ad-avatar--lg {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  font-size: 1.1rem;
}
.ad-user-link {
  color: inherit;
  text-decoration: none;
}
.ad-user-link:hover {
  color: var(--accent);
}
.ad-user-view-cols {
  grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .ad-user-view-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.ad-user-mini-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.ad-user-mini-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(238, 243, 239, 0.06);
  background: rgba(0, 0, 0, 0.18);
}
.ad-user-mini-list li > div {
  min-width: 0;
  display: grid;
  gap: 0.12rem;
}
.ad-user-mini-list strong {
  font-size: 0.9rem;
  color: var(--ink);
}
.ad-user-mini-list a {
  color: inherit;
  text-decoration: none;
}
.ad-user-mini-list a:hover strong {
  color: var(--accent);
}
.ad-user-mini-list small {
  display: block;
  font-size: 0.74rem;
  line-height: 1.35;
}
.ad-user-kyc-docs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}
.ad-user-kyc-doc {
  display: grid;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
}
.ad-user-kyc-doc img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
}
.ad-user-kyc-doc:hover img {
  border-color: rgba(61, 207, 142, 0.4);
}
.ad-user-kyc-doc:hover span {
  color: var(--accent);
}

/* ——— Package multi description editor ——— */
.ad-form-page .ad-multi-field,
.ad-multi-field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  width: 100%;
}
.ad-multi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.ad-multi-hint {
  margin: 0 !important;
}
.ad-form-page .ad-multi-list,
.ad-multi-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}
.ad-form-page .ad-multi-row,
.ad-multi-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}
.ad-form-page .ad-multi-index,
.ad-multi-index {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(238, 243, 239, 0.08);
}
.ad-form-page .ad-multi-row input[type="text"],
.ad-multi-row input[type="text"] {
  flex: 1 1 auto;
  width: auto !important;
  min-width: 0;
  margin: 0;
}
.ad-form-page .ad-multi-row .ad-multi-remove,
.ad-multi-row .ad-multi-remove {
  flex: 0 0 36px;
  width: 36px !important;
  min-width: 36px;
  margin: 0;
}
.ad-multi-add {
  align-self: flex-end;
  margin-top: 0.15rem;
}
.ad-preview-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.ad-preview-bullets:empty,
.ad-preview-bullets[hidden] {
  display: none;
}
.ad-preview-bullets li {
  position: relative;
  padding: 0.4rem 0.65rem 0.4rem 1.55rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(238, 243, 239, 0.06);
  font-size: 0.8rem;
  line-height: 1.35;
  color: rgba(238, 243, 239, 0.88);
}
.ad-preview-bullets li::before {
  content: '✓';
  position: absolute;
  left: 0.55rem;
  top: 0.4rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
}
.ad-desc-list {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.35rem;
}
.ad-desc-list li {
  line-height: 1.45;
}

.ad-pkg-calc {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 1rem;
}
@media (min-width: 720px) {
  .ad-pkg-calc {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.ad-pkg-calc-item {
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(61, 207, 142, 0.18);
  background:
    linear-gradient(165deg, rgba(61, 207, 142, 0.08), transparent 60%),
    rgba(0, 0, 0, 0.22);
  min-width: 0;
}
.ad-pkg-calc-item .ad-metric-label {
  margin-bottom: 0.2rem;
}
.ad-pkg-calc-item .ad-metric-value {
  font-size: 1rem;
}

/* Package economics — full-width inputs + metrics */
.ad-pkg-econ {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.35rem;
  min-width: 0;
  width: 100%;
}
.ad-pkg-econ-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 0.85rem;
  align-items: start;
  min-width: 0;
  width: 100%;
  max-width: none;
}
.ad-pkg-econ-inputs--3 {
  width: 100%;
  max-width: none;
}
@media (min-width: 720px) {
  .ad-pkg-econ-inputs--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.ad-pkg-econ-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(238, 243, 239, 0.72);
}
.ad-pkg-econ-field input {
  width: 100%;
  min-width: 0;
  height: 2.65rem;
  box-sizing: border-box;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
}
.ad-form-page .ad-pkg-calc-strip,
.ad-pkg-econ-results,
.ad-pkg-calc-strip {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.65rem !important;
  width: 100% !important;
  max-width: none !important;
  margin-top: 0;
}
@media (min-width: 720px) {
  .ad-form-page .ad-pkg-calc-strip,
  .ad-pkg-econ-results,
  .ad-pkg-calc-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}
.ad-pkg-calc-strip.is-loading {
  opacity: 0.72;
}
.ad-pkg-calc-note {
  margin-top: 0.65rem !important;
}

/* User transaction / deposit / withdrawal detail */
.tx-detail {
  max-width: 520px;
  margin: 0 auto;
  padding-bottom: 2rem;
}
.tx-detail-back { margin-bottom: 0.85rem; }
.tx-detail-card {
  position: relative;
  padding: 1.25rem 1.15rem 1.35rem;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    linear-gradient(165deg, rgba(61, 207, 142, 0.07), transparent 50%),
    rgba(14, 20, 18, 0.92);
  overflow: hidden;
}
.tx-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.tx-detail-head h1 {
  margin: 0.15rem 0 0.2rem;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}
.tx-detail-amount {
  display: grid;
  gap: 0.2rem;
  padding: 0.95rem 1rem;
  margin-bottom: 1rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(8, 12, 10, 0.45);
}
.tx-detail-amount strong {
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}
.tx-detail-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 1rem;
}
.tx-detail-metrics > div {
  padding: 0.75rem 0.7rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(8, 12, 10, 0.4);
  min-width: 0;
}
.tx-detail-metrics .muted {
  display: block;
  font-size: 0.7rem;
  margin-bottom: 0.25rem;
}
.tx-detail-metrics strong {
  font-size: 0.95rem;
  word-break: break-word;
}
.tx-detail-grid {
  display: grid;
  gap: 0.75rem 1rem;
  margin: 0 0 1rem;
}
.tx-detail-grid > div {
  min-width: 0;
}
.tx-detail-grid dt {
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
}
.tx-detail-grid dd {
  margin: 0;
  font-weight: 600;
  word-break: break-word;
}
.tx-detail-full { grid-column: 1 / -1; }
.tx-detail-hint { margin: 0; font-size: 0.85rem; line-height: 1.45; }
@media (min-width: 560px) {
  .tx-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ——— Admin withdrawal detail ——— */
.ad-wd-page { gap: 1.05rem; }
.ad-wd-await {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 650;
  color: #e8c27a;
  background: rgba(232, 194, 122, 0.12);
  border: 1px solid rgba(232, 194, 122, 0.28);
}
.ad-wd-await.is-pulse {
  animation: adWdPulse 1.6s ease-in-out infinite;
}
@keyframes adWdPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
.ad-wd-banner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1.05rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.03), transparent 50%),
    rgba(12, 18, 16, 0.55);
}
.ad-wd-banner.is-ok {
  border-color: rgba(61, 207, 142, 0.35);
  background:
    linear-gradient(145deg, rgba(61, 207, 142, 0.16), transparent 55%),
    rgba(12, 18, 16, 0.5);
}
.ad-wd-banner.is-warn {
  border-color: rgba(232, 194, 122, 0.32);
  background:
    linear-gradient(145deg, rgba(232, 194, 122, 0.12), transparent 55%),
    rgba(12, 18, 16, 0.5);
}
.ad-wd-banner.is-bad {
  border-color: rgba(255, 123, 114, 0.32);
  background:
    linear-gradient(145deg, rgba(255, 123, 114, 0.12), transparent 55%),
    rgba(12, 18, 16, 0.5);
}
.ad-wd-banner-ico {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.ad-wd-banner.is-ok .ad-wd-banner-ico { color: var(--accent); }
.ad-wd-banner.is-warn .ad-wd-banner-ico { color: #e8c27a; }
.ad-wd-banner.is-bad .ad-wd-banner-ico { color: var(--danger); }
.ad-wd-banner-copy { min-width: 0; flex: 1; }
.ad-wd-banner-copy strong {
  display: block;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}
.ad-wd-banner-copy p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}
.ad-wd-chip {
  flex-shrink: 0;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--accent);
  background: rgba(61, 207, 142, 0.12);
  border: 1px solid rgba(61, 207, 142, 0.28);
}
.ad-wd-money {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1.15fr;
  gap: 0.45rem;
  align-items: stretch;
}
@media (max-width: 720px) {
  .ad-wd-money {
    grid-template-columns: 1fr;
  }
  .ad-wd-money-op { display: none; }
}
.ad-wd-money-cell {
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(12, 18, 16, 0.55);
  min-width: 0;
}
.ad-wd-money-cell span {
  display: block;
  font-size: 0.72rem;
  margin-bottom: 0.28rem;
}
.ad-wd-money-cell strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.ad-wd-money-cell.is-net {
  border-color: rgba(61, 207, 142, 0.35);
  background:
    linear-gradient(165deg, rgba(61, 207, 142, 0.16), rgba(12, 18, 16, 0.4));
}
.ad-wd-money-cell.is-net strong { color: var(--accent); }
.ad-wd-fee { color: #ff9b92; }
.ad-wd-money-op {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 700;
  font-size: 1.1rem;
  opacity: 0.7;
}
.ad-wd-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 920px) {
  .ad-wd-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.85fr);
    align-items: start;
  }
}
.ad-wd-side {
  display: grid;
  gap: 1rem;
}
.ad-wd-addr {
  margin-top: 0.15rem;
}
.ad-wd-addr > .muted {
  display: block;
  font-size: 0.72rem;
  margin-bottom: 0.4rem;
}
.ad-wd-addr-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.75rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(238, 243, 239, 0.08);
}
.ad-wd-addr-row code {
  flex: 1;
  min-width: 0;
  font-size: 0.82rem;
  word-break: break-all;
  line-height: 1.35;
}
.ad-wd-gateway {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(238, 243, 239, 0.06);
}
.ad-wd-gateway h3 {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}
.ad-wd-meta {
  display: grid;
  gap: 0.65rem;
  margin: 0;
}
.ad-wd-meta > div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 0.45rem 0.75rem;
  align-items: start;
}
.ad-wd-meta dt {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
  padding-top: 0.15rem;
}
.ad-wd-meta dd {
  margin: 0;
  min-width: 0;
}
.ad-wd-meta-full dd {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
}
.ad-wd-meta-full code {
  flex: 1;
  min-width: 0;
  word-break: break-all;
  font-size: 0.78rem;
  line-height: 1.35;
}
.ad-wd-note {
  margin-top: 1rem;
  padding: 0.8rem 0.9rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}
.ad-wd-note > .muted {
  display: block;
  font-size: 0.72rem;
  margin-bottom: 0.3rem;
}
.ad-wd-note p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
}
.ad-wd-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.35rem;
  text-decoration: none;
  color: inherit;
  border-radius: 14px;
  transition: background 0.15s ease;
}
.ad-wd-user:hover {
  background: rgba(61, 207, 142, 0.06);
  text-decoration: none;
}
.ad-wd-avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-family: var(--display);
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, #5ee0a4, var(--accent) 55%, #2aa86f);
}
.ad-wd-user-text { min-width: 0; flex: 1; }
.ad-wd-user-text strong {
  display: block;
  line-height: 1.2;
}
.ad-wd-user-text small {
  display: block;
  margin-top: 0.15rem;
  word-break: break-all;
}
.ad-wd-user-go {
  color: var(--muted);
  opacity: 0.7;
}
.ad-wd-timeline {
  list-style: none;
  margin: 0.15rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.ad-wd-timeline li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 0.7rem;
  position: relative;
  padding-bottom: 1rem;
}
.ad-wd-timeline li:last-child { padding-bottom: 0; }
.ad-wd-timeline li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 16px;
  bottom: 0;
  width: 2px;
  background: rgba(238, 243, 239, 0.08);
}
.ad-wd-tl-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(238, 243, 239, 0.18);
  background: rgba(12, 18, 16, 0.9);
  position: relative;
  z-index: 1;
}
.ad-wd-timeline li.is-done .ad-wd-tl-dot {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(61, 207, 142, 0.15);
}
.ad-wd-timeline li.is-now .ad-wd-tl-dot {
  border-color: #e8c27a;
  background: #e8c27a;
  box-shadow: 0 0 0 4px rgba(232, 194, 122, 0.15);
}
.ad-wd-timeline li.is-bad .ad-wd-tl-dot {
  border-color: var(--danger);
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(255, 123, 114, 0.15);
}
.ad-wd-timeline strong {
  display: block;
  font-size: 0.9rem;
  line-height: 1.25;
}
.ad-wd-timeline small {
  display: block;
  margin-top: 0.18rem;
  font-size: 0.76rem;
  line-height: 1.35;
}
@media (max-width: 640px) {
  .ad-wd-banner { flex-wrap: wrap; }
  .ad-wd-chip { margin-left: auto; }
}

/* Mail settings — verify delivery */
.ad-mail-test-panel .ad-panel-head { margin-bottom: 0.85rem; }
.ad-mail-test {
  display: grid;
  gap: 0.9rem;
  padding: 1rem 1.05rem 1.1rem;
  border-radius: 16px;
  border: 1px solid rgba(61, 207, 142, 0.16);
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(61, 207, 142, 0.09), transparent 55%),
    rgba(12, 18, 16, 0.55);
}
.ad-mail-test-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem 0.85rem;
}
.ad-mail-test-ico {
  width: 2.55rem;
  height: 2.55rem;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--accent);
  background: rgba(61, 207, 142, 0.12);
  border: 1px solid rgba(61, 207, 142, 0.22);
  flex-shrink: 0;
}
.ad-mail-test-copy {
  min-width: 0;
  display: grid;
  gap: 0.15rem;
}
.ad-mail-test-copy strong {
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--text);
}
.ad-mail-test-copy .muted {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.35;
}
.ad-mail-test-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  white-space: nowrap;
  border: 1px solid transparent;
}
.ad-mail-test-pill i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  display: block;
}
.ad-mail-test-pill.is-ready {
  color: #9be7c0;
  background: rgba(61, 207, 142, 0.1);
  border-color: rgba(61, 207, 142, 0.28);
}
.ad-mail-test-pill.is-ready i {
  background: #3dcf8e;
  box-shadow: 0 0 0 3px rgba(61, 207, 142, 0.2);
}
.ad-mail-test-pill.is-wait {
  color: #b7c4bc;
  background: rgba(143, 163, 153, 0.1);
  border-color: rgba(143, 163, 153, 0.22);
}
.ad-mail-test-pill.is-wait i {
  background: #8fa399;
}
.ad-mail-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.ad-mail-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  max-width: 100%;
  padding: 0.38rem 0.6rem;
  border-radius: 10px;
  border: 1px solid rgba(238, 243, 239, 0.08);
  background: rgba(8, 12, 10, 0.45);
  font-size: 0.74rem;
  line-height: 1.3;
}
.ad-mail-chip em {
  font-style: normal;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ad-mail-chip .ad-mono {
  color: #d7e6dc;
  font-size: 0.74rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 14rem;
}
.ad-mail-test-hint {
  margin: 0;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px dashed rgba(61, 207, 142, 0.22);
  background: rgba(61, 207, 142, 0.05);
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
}
.ad-mail-test-hint code {
  font-size: 0.76rem;
  color: #cfe8d8;
}
.ad-mail-test-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: end;
  padding-top: 0.15rem;
  border-top: 1px solid rgba(238, 243, 239, 0.07);
}
.ad-mail-test-field {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}
.ad-mail-test-field input {
  width: 100%;
  min-width: 0;
  margin: 0;
  font-weight: 500;
  color: var(--text);
}
.ad-mail-test-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  white-space: nowrap;
  min-height: 2.55rem;
  padding-inline: 1.05rem;
  box-shadow: 0 0 0 1px rgba(61, 207, 142, 0.18), 0 8px 22px rgba(0, 0, 0, 0.22);
}
.ad-mail-test-btn svg { flex-shrink: 0; }
@media (max-width: 640px) {
  .ad-mail-test-top {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .ad-mail-test-pill {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .ad-mail-test-compose {
    grid-template-columns: 1fr;
  }
  .ad-mail-test-btn { width: 100%; }
}

/* Mobile Safe Area & Installed PWA Bottom Navigation Fix
   Only for logged-in app shell (has tab bar) — never marketing/guest pages */
@media (max-width: 768px), (display-mode: standalone) {
  .app-phone:has(.app-tabbar) .app-tabbar,
  .theme-app .app-tabbar {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 9999 !important;
    padding-bottom: max(0.85rem, calc(0.65rem + env(safe-area-inset-bottom, 0px))) !important;
  }
  .app-phone:has(.app-tabbar),
  .theme-app .app-phone {
    padding-bottom: max(96px, calc(88px + env(safe-area-inset-bottom, 0px))) !important;
  }
  .app-phone:has(.app-tabbar) .app-scroll,
  .theme-app .app-scroll {
    padding-bottom: max(110px, calc(98px + env(safe-area-inset-bottom, 0px))) !important;
  }

  /* Stack above fixed tabbar (z-index 9999) — do not shift position */
  .theme-app .pwa-install,
  .app-phone:has(.app-tabbar) .pwa-install,
  .theme-app .pwa-update,
  .app-phone:has(.app-tabbar) .pwa-update {
    z-index: 10050 !important;
  }
  .theme-app .pwa-install,
  .app-phone:has(.app-tabbar) .pwa-install {
    position: fixed !important;
    inset: 0 !important;
    border-radius: 0 !important;
  }
  .theme-app .pwa-update,
  .app-phone:has(.app-tabbar) .pwa-update {
    position: fixed !important;
    left: 0.75rem !important;
    right: 0.75rem !important;
    bottom: calc(0.85rem + var(--safe-b) + 72px) !important;
  }
}

/* Marketing / guest landing — no tab bar → no fake bottom gap */
.guest-phone.is-marketing,
.guest-phone.is-marketing .app-phone {
  padding-bottom: 0 !important;
}
.guest-phone.is-marketing .app-scroll {
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px)) !important;
}
.guest-phone.is-marketing .land-page {
  padding-bottom: 1.25rem;
}
.guest-phone.is-marketing .land-foot {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
}

/* ── PWA install popup (inside .app-phone only) ── */
.pwa-install {
  position: absolute;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  border-radius: inherit;
  overflow: hidden;
}
.pwa-install[hidden] { display: none !important; }
.pwa-install-scrim {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 6, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: auto;
  border: 0;
  cursor: pointer;
}
.pwa-install-sheet {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
  padding: 0.55rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
  border-radius: 20px 20px 0 0;
  border: 1px solid rgba(61, 207, 142, 0.22);
  border-bottom: 0;
  background:
    linear-gradient(180deg, rgba(61, 207, 142, 0.1), transparent 32%),
    linear-gradient(165deg, #161e1a, #101612);
  box-shadow: 0 -18px 48px rgba(0, 0, 0, 0.45);
  transform: translateY(108%);
  opacity: 0;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease;
  pointer-events: auto;
  will-change: transform, opacity;
}
.pwa-install.is-open .pwa-install-scrim { opacity: 1; }
.pwa-install.is-open .pwa-install-sheet {
  transform: translateY(0);
  opacity: 1;
}
.pwa-install-handle {
  width: 42px;
  height: 4px;
  border-radius: 99px;
  background: rgba(238, 243, 239, 0.18);
  margin: 0.15rem auto 0.95rem;
}
.pwa-install-row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}
.pwa-install-icon {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  object-fit: cover;
  flex-shrink: 0;
  background: #0a0a0a;
  box-shadow: 0 8px 20px rgba(61, 207, 142, 0.22);
  border: 1px solid rgba(61, 207, 142, 0.35);
  transform: scale(0.88);
  opacity: 0.7;
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.08s,
    opacity 0.4s ease 0.08s;
}
.pwa-install.is-open .pwa-install-icon {
  transform: scale(1);
  opacity: 1;
}
.pwa-install-copy { min-width: 0; }
.pwa-install-copy strong {
  display: block;
  font-family: var(--display);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 0.28rem;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.4s ease 0.12s,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.12s;
}
.pwa-install-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.4s ease 0.18s,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.18s;
}
.pwa-install.is-open .pwa-install-copy strong,
.pwa-install.is-open .pwa-install-copy p {
  opacity: 1;
  transform: none;
}
.pwa-install-ios {
  margin: 0.9rem 0 0;
  padding: 0.7rem 0.8rem 0.7rem 1.25rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  display: grid;
  gap: 0.35rem;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.4s ease 0.2s,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}
.pwa-install.is-open .pwa-install-ios {
  opacity: 1;
  transform: none;
}
.pwa-install-ios[hidden] { display: none !important; }
.pwa-install-ios strong { color: var(--ink); font-weight: 700; }
.pwa-install-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 1rem;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.4s ease 0.24s,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.24s;
}
.pwa-install.is-open .pwa-install-actions {
  opacity: 1;
  transform: none;
}
.pwa-install:not(.is-open) .pwa-install-icon,
.pwa-install:not(.is-open) .pwa-install-copy strong,
.pwa-install:not(.is-open) .pwa-install-copy p,
.pwa-install:not(.is-open) .pwa-install-ios,
.pwa-install:not(.is-open) .pwa-install-actions {
  transition-delay: 0s !important;
}
.pwa-install-actions .btn { min-width: 6.75rem; }
.app-phone.is-pwa-install-open {
  overflow: hidden;
}
@media (prefers-reduced-motion: reduce) {
  .pwa-install-scrim,
  .pwa-install-sheet,
  .pwa-install-icon,
  .pwa-install-copy strong,
  .pwa-install-copy p,
  .pwa-install-ios,
  .pwa-install-actions {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
@media (display-mode: standalone) {
  .pwa-install { display: none !important; }
}

/* PWA update prompt */
.pwa-update {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: calc(0.85rem + var(--safe-b) + 72px);
  z-index: 10050;
  pointer-events: none;
}
.pwa-update[hidden] { display: none !important; }
.pwa-update-card {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 0.85rem;
  border-radius: 18px;
  border: 1px solid rgba(61, 207, 142, 0.28);
  background:
    linear-gradient(135deg, rgba(61, 207, 142, 0.14), transparent 55%),
    rgba(14, 20, 17, 0.96);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  transform: translateY(18px);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}
.pwa-update.is-open .pwa-update-card {
  transform: translateY(0);
  opacity: 1;
}
.pwa-update-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--accent);
  background: rgba(61, 207, 142, 0.14);
  border: 1px solid rgba(61, 207, 142, 0.28);
}
.pwa-update-copy { min-width: 0; flex: 1; }
.pwa-update-copy strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.12rem;
}
.pwa-update-copy p {
  margin: 0;
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.35;
}
.pwa-update-btn {
  flex-shrink: 0;
  white-space: nowrap;
}
html.is-pwa-standalone .pwa-update {
  bottom: calc(0.75rem + var(--safe-b) + 58px);
}
@media (display-mode: standalone) {
  .pwa-update {
    bottom: calc(0.75rem + var(--safe-b) + 58px);
  }
}

/* ——— Admin access control ——— */
.ad-access {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
}
.ad-access .ad-page-bar {
  flex-wrap: wrap;
  gap: 0.75rem;
}
.ad-access-metrics {
  margin: 0 0 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .ad-access-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ad-access-metric-help {
    grid-column: 1 / -1;
  }
}
@media (min-width: 980px) {
  .ad-access-metrics {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr);
  }
  .ad-access-metric-help {
    grid-column: auto;
  }
}
.ad-access-help-text {
  font-size: 0.9rem !important;
  font-weight: 550 !important;
  line-height: 1.45;
}
.ad-access-form {
  display: grid;
  gap: 1rem;
  min-width: 0;
}
.ad-access-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  min-width: 0;
}
@media (min-width: 900px) {
  .ad-access-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}
.ad-access-grid > .ad-panel {
  min-width: 0;
  width: 100%;
}
.ad-access-master {
  width: 100%;
}
.ad-access-footnote {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  word-break: break-word;
}
.ad-access-switch-stack {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(238, 243, 239, 0.06);
  background: rgba(0, 0, 0, 0.16);
}
.ad-access-switch-stack .ad-switch {
  width: 100%;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0;
  padding: 0.15rem 0;
}
.ad-access-switch-stack .ad-switch-text {
  flex: 1;
  min-width: 0;
  order: -1;
  font-size: 0.88rem;
  font-weight: 600;
}
.ad-access-list-label {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
  min-width: 0;
}
.ad-access-list-label textarea,
.ad-access-list-label input[type="text"] {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--ink);
  font: inherit;
  padding: 0.65rem 0.75rem;
  resize: vertical;
}
.ad-access-list-label textarea:focus,
.ad-access-list-label input[type="text"]:focus {
  outline: none;
  border-color: rgba(61, 207, 142, 0.45);
}
.ad-access-countries {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
  max-height: min(52vh, 320px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.55rem 0.65rem;
  border-radius: 14px;
  border: 1px solid rgba(238, 243, 239, 0.06);
  background: rgba(0, 0, 0, 0.16);
  min-width: 0;
}
@media (min-width: 520px) {
  .ad-access-countries {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.ad-access-cc-switch {
  width: 100%;
  justify-content: space-between;
  gap: 0.55rem;
  margin: 0;
  padding: 0.35rem 0.25rem;
  border-radius: 10px;
}
.ad-access-cc-switch:hover {
  background: rgba(61, 207, 142, 0.08);
}
.ad-access-cc-switch .ad-switch-text {
  flex: 1;
  min-width: 0;
  order: -1;
  font-size: 0.8rem;
  font-weight: 550;
  line-height: 1.3;
}
.ad-access-cc-switch .ad-switch-text small {
  color: var(--muted);
  margin-left: 0.2rem;
  font-weight: 550;
}
.ad-access-extra {
  margin-top: 0.85rem;
}
.ad-access-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.15rem;
}
.ad-access-actions .btn {
  min-height: 42px;
}
@media (max-width: 520px) {
  .ad-access-actions {
    flex-direction: column;
  }
  .ad-access-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .ad-access .ad-panel-head-text h2 {
    font-size: 1.05rem;
  }
}


/* ---- Admin: Game management ---- */
.gma { display: grid; gap: 1rem; min-width: 0; }
.gma-tabs, .gma-periods { display: flex; gap: 0.25rem; overflow-x: auto; scrollbar-width: none; padding: 0.28rem; border-radius: 16px; background: rgba(0, 0, 0, 0.28); border: 1px solid rgba(61, 207, 142, 0.12); }
.gma-tabs::-webkit-scrollbar, .gma-periods::-webkit-scrollbar { display: none; }
.gma-periods { justify-self: start; max-width: 100%; border-radius: 14px; }
.gma-tabs a, .gma-periods a { flex: 0 0 auto; padding: 0.55rem 1rem; border-radius: 12px; color: var(--muted); font-size: 0.8rem; font-weight: 700; text-decoration: none; transition: color 0.2s, background 0.2s; }
.gma-periods a { padding: 0.42rem 0.85rem; font-size: 0.76rem; }
.gma-tabs a:hover, .gma-periods a:hover { color: var(--ink); }
.gma-tabs a.is-active, .gma-periods a.is-active { color: #fff; background: linear-gradient(145deg, #5ee0a4, var(--accent)); box-shadow: 0 8px 20px rgba(61, 207, 142, 0.28); }
.gma-games { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0.7rem; }
.gma-game { display: grid; gap: 0.6rem; align-content: start; padding: 0.95rem; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(165deg, #161e1a, #121816); }
.gma-game.is-on { border-color: rgba(61, 207, 142, 0.35); box-shadow: inset 0 0 0 1px rgba(61, 207, 142, 0.08); }
.gma-game.is-off { opacity: 0.86; border-color: rgba(255, 123, 114, 0.3); }
.gma-game p { margin: 0; font-size: 0.8rem; }
.gma-game form { margin: 0; }
.gma-game .btn { width: 100%; }
.gma-game-head { display: flex; align-items: center; gap: 0.5rem; }
.gma-game-state { margin-left: auto; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.gma-game.is-on .gma-game-state { color: var(--accent); }
.gma-game.is-off .gma-game-state { color: var(--danger); }
.gma-dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 3px rgba(255, 123, 114, 0.18); }
.gma-game.is-on .gma-dot { background: var(--accent); box-shadow: 0 0 0 3px rgba(61, 207, 142, 0.2), 0 0 12px rgba(61, 207, 142, 0.6); animation: gma-pulse 2s ease-in-out infinite; }
@keyframes gma-pulse { 50% { box-shadow: 0 0 0 5px rgba(61, 207, 142, 0.08), 0 0 4px rgba(61, 207, 142, 0.3); } }
.gma-game-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; margin: 0; }
.gma-game-stats div { min-width: 0; }
.gma-game-stats dt { font-size: 0.66rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.gma-game-stats dd { margin: 0.1rem 0 0; font-size: 0.82rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gma-pos, .gma-game-stats dd.is-pos { color: var(--accent); }
.gma-neg, .gma-game-stats dd.is-neg { color: var(--danger); }
.gma-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 1rem; }
.gma-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.gma-chart { display: grid; grid-template-columns: repeat(14, 1fr); gap: 0.3rem; height: 11rem; padding-top: 0.4rem; }
.gma-bar-col { display: grid; grid-template-rows: 1fr 1fr auto; min-width: 0; }
.gma-bar-half { position: relative; display: flex; }
.gma-bar-up { align-items: flex-end; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.gma-bar-down { align-items: flex-start; }
.gma-bar-half i { display: block; width: 100%; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #5ee0a4, rgba(61, 207, 142, 0.45)); }
.gma-bar-down i { border-radius: 0 0 4px 4px; background: linear-gradient(0deg, #ff7b72, rgba(255, 123, 114, 0.45)); }
.gma-bar-col small { text-align: center; font-size: 0.62rem; color: var(--muted); padding-top: 0.25rem; }
.gma-live-line { margin: 0 0 0.7rem; font-size: 0.85rem; color: var(--muted); }
.gma-live-line strong { color: var(--ink); }
.gma-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.gma-chip { min-width: 2rem; padding: 0.3rem 0.5rem; border-radius: 999px; text-align: center; font-size: 0.75rem; font-weight: 800; color: #fff; }
.gma-chip.is-red { background: #b8231d; }
.gma-chip.is-black { background: #1d1d1d; border: 1px solid rgba(255, 255, 255, 0.12); }
.gma-chip.is-green { background: #0f8a4c; }
.gma-chip--x { background: rgba(255, 255, 255, 0.06); }
.gma-chip--x.is-low { color: #7fb4ff; }
.gma-chip--x.is-mid { color: #c18cff; }
.gma-chip--x.is-high { color: #ff6fae; }
.gma-rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
.gma-rank li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 0.6rem; align-items: center; padding: 0.5rem 0.2rem; border-bottom: 1px solid var(--line); font-size: 0.85rem; }
.gma-rank li:last-child { border-bottom: 0; }
.gma-rank a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.gma-rank .muted { font-size: 0.74rem; }
.gma-sub { display: block; font-size: 0.72rem; }
.gma-settings { display: grid; gap: 1rem; }
.gma-per-game { display: grid; gap: 0.8rem; }
.gma-fieldset { margin: 0; padding: 0.85rem 0.9rem 0.9rem; border: 1px solid var(--line); border-radius: 16px; display: grid; gap: 0.6rem; }
.gma-fieldset legend { padding: 0 0.4rem; font-weight: 800; font-size: 0.85rem; color: var(--accent-2); }
.gma-hint { margin: 0; }
.gma-save { position: sticky; bottom: 0.75rem; z-index: 2; display: flex; justify-content: flex-end; }
.gma-save .btn { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); }
.gma .ad-td-actions { display: flex; gap: 0.35rem; align-items: center; }
.gma .ad-td-actions form { margin: 0; }
.gma-slices { display: grid; gap: 0.4rem; }
.gma-slices-head, .gma-slice { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) minmax(0, 1fr) 4.2rem; gap: 0.5rem; align-items: center; }
.gma-slices-head { font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.gma-slice input { width: 100%; min-width: 0; }
.gma-slice output { text-align: right; font-size: 0.8rem; font-weight: 700; color: var(--ink); }
.gma-swatch { display: grid; place-items: center; height: 2rem; border-radius: 10px; font-size: 0.75rem; font-weight: 800; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15); }
.gma-rtp { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin: 0.35rem 0 0; font-size: 0.85rem; color: var(--muted); }
.gma-rtp strong { color: var(--accent); }
.gma-rtp strong.gma-neg { color: var(--danger); }
.gma-rtp .btn { margin-left: auto; }
@media (max-width: 820px) {
  .gma .ad-table td.ad-w-num,
  .gma .ad-table td.ad-w-sm,
  .gma .ad-table td.ad-w-status { width: auto; }
  .gma .ad-td-actions { display: flex; flex-wrap: wrap; }
}

/* ==========================================================================
   Earnora responsive redesign v2 — member app (.theme-member) + guest (.theme-guest)
   Scoped so admin (.theme-admin) and agent (.theme-agent-app / .theme-agent-land)
   layouts are untouched. Palette + fonts unchanged (tokens from :root).
   Breakpoints: mobile < 768px · tablet 768–1099px (icon rail) · desktop ≥ 1100px
   ========================================================================== */
body.theme-member,
body.theme-guest {
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-md: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.375rem;
  --fs-2xl: 1.75rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --touch: 44px;
  --gutter: max(1rem, env(safe-area-inset-left, 0px));
  --gutter-r: max(1rem, env(safe-area-inset-right, 0px));
  --m-tab-h: 64px;
  --content-max: 1200px;
  --sidenav-w: 264px;
  --rail-w: 84px;
  --card-bg: linear-gradient(165deg, rgba(28, 38, 34, 0.96), rgba(14, 18, 16, 0.98));
  background: var(--bg);
  text-rendering: optimizeLegibility;
}

/* —— Skip link (keyboard users) —— */
.skip-link {
  position: fixed;
  top: max(0.5rem, env(safe-area-inset-top, 0px));
  left: 0.75rem;
  z-index: 100000;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  background: var(--accent);
  color: #06120c;
  font-weight: 700;
  font-size: var(--fs-sm, 0.875rem);
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: none;
  outline: 2px solid #fff;
  outline-offset: 2px;
}
body.theme-member .app-scroll:focus,
body.theme-guest .app-scroll:focus { outline: none; }

/* —— Accessible focus ring (keyboard only) —— */
body.theme-member :is(a, button, summary, [role="button"], [role="tab"], [tabindex="0"]):focus-visible,
body.theme-guest :is(a, button, summary, [role="button"], [role="tab"], [tabindex="0"]):focus-visible {
  outline: 2px solid var(--accent) !important;
  outline-offset: 2px !important;
}
body.theme-member :is(input, select, textarea):focus-visible,
body.theme-guest :is(input, select, textarea):focus-visible {
  outline: 2px solid rgba(61, 207, 142, 0.45);
  outline-offset: 1px;
}

/* —— Shell: full-bleed on every size (no phone frame) —— */
body.theme-member,
body.theme-guest {
  display: block;
  padding: 0;
  height: 100dvh;
  overflow: hidden;
}
body.theme-member .app-shell,
body.theme-guest .guest-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  height: 100dvh;
  min-height: 100dvh;
  max-height: 100dvh;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* Sidebar + desktop-only chrome are hidden on phones */
.app-sidenav,
.app-topbar-title,
.land-header-links { display: none; }

/* ==========================================================================
   MOBILE  (< 768px) — native-app feel
   ========================================================================== */
@media (max-width: 767.98px) {
  /* Sticky app bar respecting notch / rounded corners */
  body.theme-member .app-topbar {
    min-height: calc(60px + env(safe-area-inset-top, 0px));
    padding:
      calc(0.6rem + env(safe-area-inset-top, 0px))
      var(--gutter-r)
      0.6rem
      var(--gutter);
    background: rgba(15, 42, 31, 0.94);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
  }

  /* Scroll area: consistent gutters, room for the docked tab bar */
  body.theme-member .app-scroll {
    padding-top: var(--space-4);
    padding-left: var(--gutter);
    padding-right: var(--gutter-r);
    scroll-padding-bottom: calc(var(--m-tab-h) + env(safe-area-inset-bottom, 0px) + 1rem);
  }
  body.theme-member .app-phone,
  body.theme-member .app-shell { padding-bottom: 0 !important; }
  body.theme-member .app-scroll {
    padding-bottom: calc(var(--m-tab-h) + env(safe-area-inset-bottom, 0px) + 1.5rem) !important;
  }

  /* Docked, edge-to-edge bottom tab bar (banking-app style) */
  body.theme-member .app-tabbar {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 9999 !important;
    padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px) !important;
    pointer-events: auto;
    background: rgba(11, 17, 14, 0.94);
    border-top: 1px solid rgba(238, 243, 239, 0.08);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(18px) saturate(1.25);
    -webkit-backdrop-filter: blur(18px) saturate(1.25);
  }
  body.theme-member .app-tabbar-inner {
    max-width: 560px;
    margin: 0 auto;
    min-height: var(--m-tab-h);
    padding: 0.3rem 0.4rem 0.35rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    align-items: center;
  }
  body.theme-member .tab-item {
    min-height: 54px;
    min-width: var(--touch);
    font-size: 0.66rem;
    border-radius: 14px;
  }
  body.theme-member .tab-item::before { top: 0.15rem; }
  body.theme-member .tab-item.is-active { background: transparent; }
  body.theme-member .tab-item.is-active .tab-ico {
    background: rgba(61, 207, 142, 0.12);
    border-radius: 10px;
  }
  body.theme-member .tab-ico { width: 40px; height: 28px; }
  body.theme-member .tab-fab {
    width: 52px;
    height: 52px;
    margin-top: -26px;
    box-shadow:
      0 10px 24px rgba(61, 207, 142, 0.35),
      0 0 0 5px rgba(11, 17, 14, 0.96),
      0 0 0 6px rgba(61, 207, 142, 0.16);
  }

  /* Prevent iOS focus-zoom now that pinch-zoom is allowed (a11y) */
  body.theme-member :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([readonly]), select, textarea),
  body.theme-guest :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([readonly]), select, textarea) {
    font-size: 16px;
  }
  body.theme-member .wd-amount-wrap input { font-size: 1.45rem; }

  /* Guest header: safe-area aware */
  body.theme-guest .land-header {
    padding-left: var(--gutter);
    padding-right: var(--gutter-r);
    min-height: 60px;
  }
  body.theme-guest .app-scroll {
    padding-left: var(--gutter);
    padding-right: var(--gutter-r);
  }
  body.theme-guest .land-menu-btn,
  body.theme-guest .land-header-link,
  body.theme-guest .land-header-join { min-height: 40px; }
  /* Full-bleed landing hero (no inset box edges on phones) */
  body.theme-guest .land-hero {
    margin-left: calc(-1 * var(--gutter));
    margin-right: calc(-1 * var(--gutter-r));
    padding-left: var(--gutter);
    padding-right: var(--gutter-r);
  }
}

/* 44px+ touch targets in the app bar (all sizes) */
body.theme-member .icon-btn,
body.theme-member .avatar-btn {
  width: var(--touch);
  height: var(--touch);
  border-radius: 14px;
}
body.theme-member .app-account-copy {
  position: relative;
  width: 28px;
  height: 28px;
}
body.theme-member .app-account-copy::after {
  content: "";
  position: absolute;
  inset: -8px;
}
body.theme-guest .land-menu-btn { min-width: var(--touch); min-height: var(--touch); }
body.theme-guest .land-menu-close { min-width: var(--touch); min-height: var(--touch); }

/* —— Tap feedback (touch) & no hover-only affordances —— */
body.theme-member :is(.btn, .home-action, .home-stat, .home-tx.is-link, .wallet-tx.is-link, .home-links a, .icon-btn, .avatar-btn, .wallet-tab, .side-link, .notif-pro, .pf-quick a, .rf-share-actions .btn, .sp-topics a, .gl-card, .land-plan),
body.theme-guest :is(.btn, .land-menu-link, .land-foot-col a, .land-header-navlink, .land-contact-card) {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
@media (hover: none) {
  body.theme-member .btn:hover,
  body.theme-guest .btn:hover { transform: none; filter: none; }
  body.theme-member :is(.btn, .home-action, .home-stat, .home-tx.is-link, .wallet-tx.is-link, .home-links a, .icon-btn, .avatar-btn, .wallet-tab, .pf-quick a, .gl-card):active,
  body.theme-guest :is(.btn, .land-menu-link, .land-contact-card):active {
    transform: scale(0.97);
    transition: transform 0.08s ease;
  }
  body.theme-member :is(.home-tx.is-link, .wallet-tx.is-link, .home-links a, .notif-pro):active {
    background-color: rgba(61, 207, 142, 0.06);
  }
}

/* Never allow sideways scrolling of the page shell */
body.theme-member .app-scroll,
body.theme-guest .app-scroll { overflow-x: hidden; }
body.theme-member .app-scroll img,
body.theme-guest .app-scroll img { max-width: 100%; }

/* Typographic rhythm */
body.theme-member .section-head h2 { font-size: var(--fs-lg); }
body.theme-member .page-head h1 { font-size: var(--fs-2xl); line-height: 1.1; }
body.theme-member :is(.home-balance, .wallet-hero-balance, .rf-hero-balance, .st-hero-balance) { font-variant-numeric: tabular-nums; }

/* ==========================================================================
   TABLET + DESKTOP (≥ 768px) — member app: sidebar shell, wide content
   ========================================================================== */
@media (min-width: 768px) {
  body.theme-member .app-shell {
    display: grid;
    grid-template-columns: var(--rail-w) minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr);
    grid-template-areas:
      "side banner"
      "side top"
      "side main";
    padding-bottom: 0 !important;
    background:
      radial-gradient(1100px 520px at 18% -12%, rgba(61, 207, 142, 0.11), transparent 60%),
      radial-gradient(900px 480px at 105% 0%, rgba(232, 194, 122, 0.07), transparent 55%),
      var(--bg);
  }
  body.theme-member .impersonate-banner { grid-area: banner; }
  body.theme-member .app-tabbar { display: none !important; }

  /* Sidebar (icon rail on tablet) */
  body.theme-member .app-sidenav {
    grid-area: side;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    min-height: 0;
    height: 100dvh;
    padding: calc(1rem + env(safe-area-inset-top, 0px)) 0.75rem calc(1rem + env(safe-area-inset-bottom, 0px)) max(0.75rem, env(safe-area-inset-left, 0px));
    /* Brand + deposit CTA stay pinned; only the nav list scrolls (see .app-sidenav-nav) */
    overflow: hidden;
    scrollbar-width: none;
    background: linear-gradient(180deg, #0f1814 0%, #0b110e 100%);
    border-right: 1px solid var(--line);
    z-index: 35;
  }
  body.theme-member .app-sidenav::-webkit-scrollbar { display: none; }
  .app-sidenav-brand {
    display: flex;
    flex-shrink: 0;
    justify-content: center;
    padding: 0.15rem 0 0.35rem;
  }
  .app-sidenav-brand .brand-lockup-name { display: none; }
  .app-sidenav-nav {
    display: grid;
    gap: 0.2rem;
    align-content: start;
    /* Fills the space between brand and CTA; scrolls on its own when links overflow */
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    /* Bleed into the sidebar padding so the active-link indicator and focus rings aren't clipped */
    margin: -2px -0.75rem;
    padding: 2px 0.75rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(238, 243, 239, 0.14) transparent;
  }
  .app-sidenav-nav::-webkit-scrollbar { width: 4px; }
  .app-sidenav-nav::-webkit-scrollbar-thumb { border-radius: 4px; background: rgba(238, 243, 239, 0.14); }
  .app-sidenav-heading {
    margin: 0.85rem 0 0.25rem;
    height: 1px;
    overflow: hidden;
    background: var(--line);
    color: transparent;
    font-size: 0;
  }
  .app-sidenav-heading:first-child { display: none; }
  .side-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 46px;
    padding: 0.6rem;
    border-radius: 14px;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
  }
  .side-link svg { flex-shrink: 0; }
  .side-link > span:not(.side-badge) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .side-link:hover { color: var(--ink); background: rgba(238, 243, 239, 0.05); }
  .side-link.is-active {
    color: var(--accent);
    background: rgba(61, 207, 142, 0.12);
    box-shadow: inset 0 0 0 1px rgba(61, 207, 142, 0.22);
  }
  .side-link.is-active::before {
    content: "";
    position: absolute;
    left: -0.75rem;
    top: 22%;
    bottom: 22%;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--accent);
  }
  .side-badge {
    position: absolute;
    top: 6px;
    right: 8px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: var(--danger);
    color: #fff;
    font-size: 0.66rem;
    font-weight: 700;
    line-height: 1;
  }
  .app-sidenav-cta {
    margin-top: auto;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    min-height: 48px;
    padding: 0.65rem;
    border-radius: 16px;
    color: var(--ink);
    text-decoration: none;
    background: linear-gradient(145deg, rgba(61, 207, 142, 0.16), rgba(61, 207, 142, 0.05));
    border: 1px solid rgba(61, 207, 142, 0.28);
    transition: border-color 0.18s ease, background 0.18s ease;
  }
  .app-sidenav-cta:hover { border-color: rgba(61, 207, 142, 0.5); }
  .app-sidenav-cta-ico {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: #06120c;
    background: var(--accent);
  }
  .app-sidenav-cta-copy { display: none; min-width: 0; }
  .app-sidenav-cta-copy strong { display: block; font-size: 0.9rem; }
  .app-sidenav-cta-copy small { display: block; color: var(--muted); font-size: 0.74rem; line-height: 1.3; }

  /* Top bar becomes a page header */
  body.theme-member .app-topbar {
    grid-area: top;
    position: relative;
    top: auto;
    min-height: 68px;
    padding: calc(0.7rem + env(safe-area-inset-top, 0px)) max(1.5rem, calc((100% - 880px) / 2)) 0.7rem;
    background: rgba(12, 18, 16, 0.72);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    gap: 1rem;
  }
  body.theme-member .app-topbar-title {
    display: block;
    flex: 1;
    min-width: 0;
    order: 0;
    margin: 0;
    font-family: var(--display);
    font-size: var(--fs-xl);
    font-weight: 700;
    letter-spacing: -0.03em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  body.theme-member .app-topbar-right { order: 1; gap: 0.5rem; }
  body.theme-member .app-topbar-left {
    order: 2;
    flex-direction: row-reverse;
    padding-left: 1rem;
    border-left: 1px solid var(--line);
  }
  body.theme-member .app-topbar-meta { text-align: right; }
  body.theme-member .app-account-id-row { justify-content: flex-end; }

  /* Main scroll column: centred content, comfortable gutters */
  body.theme-member .app-scroll {
    grid-area: main;
    padding: 1.75rem max(1.5rem, calc((100% - 880px) / 2)) calc(3rem + env(safe-area-inset-bottom, 0px)) !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(61, 207, 142, 0.3) transparent;
  }
  body.theme-member .app-scroll::-webkit-scrollbar { display: block; width: 10px; }
  body.theme-member .app-scroll::-webkit-scrollbar-thumb {
    background: rgba(61, 207, 142, 0.25);
    border-radius: 999px;
    border: 3px solid transparent;
    background-clip: content-box;
  }

  /* Bottom sheets / prompts become floating cards */
  body.theme-member .pwa-install,
  body.theme-guest .pwa-install {
    position: fixed !important;
    inset: 0 !important;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 1.5rem;
  }
  body.theme-member .pwa-install-sheet,
  body.theme-guest .pwa-install-sheet {
    width: min(420px, 100%);
    border-radius: 20px;
    border-bottom: 1px solid rgba(61, 207, 142, 0.22);
    padding-bottom: 1rem;
  }
  body.theme-member .pwa-install-handle,
  body.theme-guest .pwa-install-handle { display: none; }
  body.theme-member .pwa-update,
  body.theme-guest .pwa-update {
    position: fixed !important;
    left: auto !important;
    right: 1.5rem !important;
    bottom: 1.5rem !important;
    width: min(420px, calc(100% - 3rem));
  }
  body.theme-member .wd-sheet {
    position: fixed;
    align-items: center;
    justify-content: center;
  }

  /* Generic member components get more breathing room */
  body.theme-member .home-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body.theme-member .home-news { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.theme-member .home-links { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  body.theme-member .plan-stack {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    align-items: stretch;
  }
  body.theme-member .plan-stack .plan-pro { display: flex; flex-direction: column; }
  body.theme-member .plan-stack .plan-pro-cta { margin-top: auto; }
  body.theme-member .plan-stack > .empty-state { grid-column: 1 / -1; }
  body.theme-member .st-kpis { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
  body.theme-member .mgr-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body.theme-member .sp-topics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body.theme-member .gl-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  body.theme-member .wallet-tabs { max-width: 520px; }
  body.theme-member .wallet-main .wallet-tabs { max-width: none; }

  /* Focused, single-task pages stay at a readable width */
  body.theme-member .app-scroll > :is(.tx-detail, .cm-pay, .task-run, .pf-edit-page, .sp-thread, .sp-tg-link),
  body.theme-member .app-scroll > .page-head:has(+ :is(.sp-thread, .sp-tg-link)) {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
  }
  body.theme-member .app-scroll > :is(.notif-head, .notif-stack, .notif-empty) {
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Game play screens are designed portrait — keep them a sensible size */
  body.theme-member .app-scroll > [data-game] {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Large tablet / small desktop: tasks + notices in 2 columns */
@media (min-width: 900px) {
  body.theme-member .task-stack { grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); }
  body.theme-member .notice-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ==========================================================================
   DESKTOP (≥ 1100px) — full sidebar, 1200px content, multi-column pages
   ========================================================================== */
@media (min-width: 1100px) {
  body.theme-member .app-shell { grid-template-columns: var(--sidenav-w) minmax(0, 1fr); }
  body.theme-member .app-sidenav { padding-left: max(1rem, env(safe-area-inset-left, 0px)); padding-right: 1rem; }
  .app-sidenav-brand { justify-content: flex-start; padding: 0.15rem 0.5rem 0.5rem; }
  .app-sidenav-brand .brand-lockup-name { display: inline-flex; }
  .app-sidenav-heading {
    height: auto;
    margin: 1rem 0.75rem 0.35rem;
    background: none;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.75;
  }
  .app-sidenav-heading:first-child { display: block; margin-top: 0.25rem; }
  .app-sidenav-nav { margin-left: -1rem; margin-right: -1rem; padding-left: 1rem; padding-right: 1rem; }
  .side-link { justify-content: flex-start; padding: 0.6rem 0.8rem; }
  .side-link > span:not(.side-badge) {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
  }
  .side-link.is-active::before { left: -1rem; }
  .side-badge { position: static; margin-left: auto; }
  .app-sidenav-cta { justify-content: flex-start; padding: 0.75rem 0.85rem; }
  .app-sidenav-cta-copy { display: block; }

  body.theme-member .app-topbar,
  body.theme-member .app-scroll {
    padding-left: max(2rem, calc((100% - var(--content-max)) / 2)) !important;
    padding-right: max(2rem, calc((100% - var(--content-max)) / 2)) !important;
  }

  /* Multi-column page grids: children lose stacked margins, use gap */
  body.theme-member .mpage {
    display: grid;
    gap: 1.25rem 1.5rem;
    align-items: start;
  }
  body.theme-member .mpage > * { margin-top: 0; margin-bottom: 0; }

  /* Dashboard */
  body.theme-member .mpage--dash {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    grid-template-areas:
      "hero overview"
      "gate gate"
      "earn checkin"
      "earn news"
      "activity links";
    grid-template-rows: auto auto auto 1fr auto;
  }
  .mpage--dash > .dash-hero { grid-area: hero; }
  .mpage--dash > .dash-gate { grid-area: gate; }
  .mpage--dash > .dash-checkin { grid-area: checkin; }
  .mpage--dash > .dash-earn { grid-area: earn; }
  .mpage--dash > .dash-overview { grid-area: overview; }
  .mpage--dash > .dash-news { grid-area: news; }
  .mpage--dash > .dash-activity { grid-area: activity; }
  .mpage--dash > .dash-links { grid-area: links; }
  body.theme-member .mpage--dash > .dash-hero { padding: 1.6rem 1.6rem 1.5rem; }
  body.theme-member .mpage--dash .home-balance { font-size: 3.4rem; }
  body.theme-member .mpage--dash .home-action { padding: 0.85rem 0.5rem; font-size: 0.78rem; }
  body.theme-member .mpage--dash .home-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.theme-member .mpage--dash .home-news,
  body.theme-member .mpage--dash .home-links { grid-template-columns: 1fr; }
  body.theme-member .mpage--dash .home-checkin { flex-wrap: wrap; }
  body.theme-member .mpage--dash .home-checkin-body { flex-basis: calc(100% - 60px); }
  body.theme-member .mpage--dash .home-checkin > :last-child { margin-left: auto; }
  body.theme-member .mpage--dash .dash-overview .section-head,
  body.theme-member .mpage--dash .section-head { margin-bottom: 0.75rem; }

  /* Wallet: actions left, history right */
  body.theme-member .wallet-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
    gap: 1.5rem;
    align-items: start;
    margin-top: 1.25rem;
  }
  body.theme-member .wallet-layout:has(> .wallet-side:empty),
  body.theme-member .wallet-layout:not(:has(> .wallet-side *)) { grid-template-columns: minmax(0, 1fr); }
  body.theme-member .wallet-side {
    display: grid;
    gap: 1.25rem;
    position: sticky;
    top: 0;
  }
  body.theme-member .wallet-side .wallet-history-block { margin: 0; }
  body.theme-member .wallet-hero { padding: 1.6rem; }
  body.theme-member .wallet-stat-row { max-width: 640px; }

  /* Referral */
  body.theme-member .mpage--ref {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "hero share"
      "steps steps"
      "team earn";
  }
  .mpage--ref > .ref-hero { grid-area: hero; align-self: stretch; }
  .mpage--ref > .ref-share { grid-area: share; align-self: stretch; }
  .mpage--ref > .ref-steps { grid-area: steps; }
  .mpage--ref > .ref-team { grid-area: team; }
  .mpage--ref > .ref-earn { grid-area: earn; }
  body.theme-member .mpage--ref .rf-step-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
  body.theme-member .mpage--ref .rf-step-list > li { margin: 0; }

  /* Profile: identity column + settings column */
  body.theme-member .mpage--profile { grid-template-columns: 340px minmax(0, 1fr); }
  body.theme-member .pf-side { position: sticky; top: 0; display: grid; gap: 1rem; }
  body.theme-member .pf-side > * { margin-top: 0; margin-bottom: 0; }
  body.theme-member .pf-main { display: grid; gap: 1.25rem; }
  body.theme-member .pf-main > * { margin-top: 0; margin-bottom: 0; }
  body.theme-member .mpage--profile .pf-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* Support */
  body.theme-member .mpage--support {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    grid-template-areas:
      "hero hero"
      "form channels"
      "form tickets"
      "topics topics"
      "faq faq";
    grid-template-rows: auto auto 1fr auto auto;
  }
  .mpage--support > .sup-hero { grid-area: hero; }
  .mpage--support > .sup-form { grid-area: form; }
  .mpage--support > .sup-channels { grid-area: channels; }
  .mpage--support > .sup-tickets { grid-area: tickets; }
  .mpage--support > .sup-topics { grid-area: topics; }
  .mpage--support > .sup-faq { grid-area: faq; }

  /* Stats */
  body.theme-member .mpage--stats {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "hero kpis"
      "chart sources"
      "history history";
  }
  .mpage--stats > .stats-hero { grid-area: hero; align-self: stretch; }
  body.theme-member .mpage--stats > .stats-kpis { grid-area: kpis; align-self: stretch; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mpage--stats > .stats-chart { grid-area: chart; }
  .mpage--stats > .stats-sources { grid-area: sources; }
  .mpage--stats > .stats-history { grid-area: history; }
  body.theme-member .mpage--stats:not(:has(> .stats-sources)) > .stats-chart { grid-column: 1 / -1; }

  /* Tasks / packages / news */
  body.theme-member .task-progress-card { padding: 1.5rem; }
  body.theme-member .plan-stack { gap: 1.25rem; }
  body.theme-member .active-plan-banner { max-width: none; }
}


/* Installed PWA on desktop: legacy standalone rules must not force a bottom bar */
@media (display-mode: standalone) and (min-width: 768px) {
  body.theme-member .app-tabbar { display: none !important; }
  body.theme-member .app-phone { padding-bottom: 0 !important; }
}

/* ==========================================================================
   GUEST — marketing + auth, tablet/desktop
   ========================================================================== */
@media (min-width: 768px) {
  body.theme-guest .guest-shell {
    background:
      radial-gradient(1200px 600px at 15% -15%, rgba(61, 207, 142, 0.14), transparent 60%),
      radial-gradient(900px 520px at 110% 5%, rgba(232, 194, 122, 0.08), transparent 55%),
      var(--bg);
  }
  body.theme-guest .land-header {
    padding: 0.9rem max(2rem, calc((100% - var(--content-max)) / 2));
    min-height: 72px;
  }
  body.theme-guest .app-scroll {
    padding-left: max(2rem, calc((100% - var(--content-max)) / 2));
    padding-right: max(2rem, calc((100% - var(--content-max)) / 2));
    scrollbar-width: thin;
    scrollbar-color: rgba(61, 207, 142, 0.3) transparent;
  }
  body.theme-guest .app-scroll::-webkit-scrollbar { display: block; width: 10px; }
  body.theme-guest .app-scroll::-webkit-scrollbar-thumb {
    background: rgba(61, 207, 142, 0.25);
    border-radius: 999px;
    border: 3px solid transparent;
    background-clip: content-box;
  }

  /* Landing hero: copy left, brand visual right */
  body.theme-guest .land-hero {
    min-height: min(720px, calc(100dvh - 72px));
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 2rem;
    margin: 0;
    padding: 2.5rem 0 3rem;
    overflow: visible;
  }
  body.theme-guest .land-hero-visual {
    position: relative;
    inset: auto;
    grid-column: 2;
    grid-row: 1;
    height: min(520px, 60dvh);
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid rgba(61, 207, 142, 0.14);
    background: radial-gradient(circle at 50% 45%, rgba(61, 207, 142, 0.12), transparent 65%), rgba(14, 22, 18, 0.6);
  }
  body.theme-guest .land-hero-logo {
    top: 50%;
    width: min(70%, 340px);
    transform: translate(-50%, -50%);
    animation-name: land-float-center;
  }
  body.theme-guest .land-hero-copy {
    grid-column: 1;
    grid-row: 1;
    padding-top: 0;
  }
  body.theme-guest .land-brand { font-size: clamp(3.5rem, 7vw, 5.5rem); }
  body.theme-guest .land-headline { font-size: clamp(1.75rem, 3vw, 2.4rem); max-width: 18ch; }
  body.theme-guest .land-lede { font-size: 1.05rem; max-width: 46ch; }
  body.theme-guest .land-cta .btn { min-height: 48px; padding-inline: 1.5rem; }

  /* Sections */
  body.theme-guest .land-section { margin-top: 4.5rem; }
  body.theme-guest .land-h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
  body.theme-guest .land-sub { font-size: 1rem; max-width: 60ch; margin-bottom: 1.75rem; }
  body.theme-guest .land-promise-list,
  body.theme-guest .land-trust-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    border-top: 0;
  }
  body.theme-guest .land-promise-list li,
  body.theme-guest .land-trust-row > div {
    padding: 1.35rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card-bg);
  }
  body.theme-guest .land-steps {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    border-top: 0;
  }
  body.theme-guest .land-step {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    padding: 1.35rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card-bg);
  }
  body.theme-guest .land-plan-list {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
  body.theme-guest .land-plan,
  body.theme-guest .land-plan:first-child {
    flex-direction: column;
    gap: 1rem;
    padding: 1.35rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card-bg);
    transition: border-color 0.2s ease, transform 0.2s ease;
  }
  body.theme-guest .land-plan:hover { border-color: rgba(61, 207, 142, 0.35); }
  body.theme-guest .land-plan-meta { text-align: left; }
  body.theme-guest .land-plan-meta strong { font-size: 1.6rem; }
  body.theme-guest .land-plans-cta { width: auto; min-width: 240px; }
  body.theme-guest .land-close {
    text-align: center;
    padding: 3rem 2rem;
    border: 1px solid rgba(61, 207, 142, 0.2);
    border-radius: 28px;
    background:
      radial-gradient(600px 240px at 50% 0%, rgba(61, 207, 142, 0.14), transparent 70%),
      var(--bg-elev);
  }
  body.theme-guest .land-close .land-sub { margin-left: auto; margin-right: auto; }
  body.theme-guest .land-close .land-cta { justify-content: center; }

  /* Footer: brand left, link columns right */
  body.theme-guest .land-foot {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 2rem 3rem;
    margin-top: 4.5rem;
    padding-top: 2.5rem;
  }
  body.theme-guest .land-foot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
  body.theme-guest .land-foot-reach,
  body.theme-guest .land-foot-bottom { grid-column: 1 / -1; }

  /* Inner pages: readable measure, larger hero */
  body.theme-guest .land-doc > :not(.land-foot) { max-width: 820px; }
  body.theme-guest .land-doc-hero { padding-top: 3rem; }
  body.theme-guest .land-doc-title { font-size: clamp(2.4rem, 4.5vw, 3.4rem); }
  body.theme-guest .land-doc-lede { font-size: 1.08rem; max-width: 56ch; }
  body.theme-guest .land-doc-block p { font-size: 1rem; }
  body.theme-guest .land-contact { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* Auth: split screen — brand panel + form card */
  body.theme-guest .auth-scroll {
    justify-content: center !important;
    padding-top: 2rem !important;
  }
  body.theme-guest .auth-shell {
    max-width: 980px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
    grid-template-areas:
      "brand card"
      "trust card";
    grid-template-rows: auto 1fr;
    gap: 1.5rem 3rem;
    align-items: start;
    margin: auto;
  }
  body.theme-guest .auth-brand {
    grid-area: brand;
    text-align: left;
    margin: 0;
    padding-top: 3rem;
  }
  body.theme-guest .auth-brand .brand-lockup-name-text { font-size: 2rem; }
  body.theme-guest .auth-tagline {
    margin-top: 1rem;
    font-family: var(--display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--ink);
    max-width: 14ch;
  }
  body.theme-guest .auth-card { grid-area: card; padding: 2rem 1.75rem 1.75rem; }
  body.theme-guest .auth-trust {
    grid-area: trust;
    justify-content: flex-start;
    align-self: start;
    margin: 0;
  }
  body.theme-guest .auth-trust li { font-size: 0.8rem; padding: 0.5rem 0.9rem; }
}

@media (min-width: 900px) {
  body.theme-guest .land-header-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0 auto;
  }
  body.theme-guest .land-header-navlink {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 0.85rem;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.18s ease, background 0.18s ease;
  }
  body.theme-guest .land-header-navlink:hover { color: var(--ink); background: rgba(238, 243, 239, 0.05); }
  body.theme-guest .land-header-navlink.is-active { color: var(--accent); background: rgba(61, 207, 142, 0.1); }
  body.theme-guest .land-menu-btn { display: none; }
  body.theme-guest .land-header-nav { gap: 0.6rem; }
}

@media (max-width: 767.98px) {
  body.theme-guest .auth-scroll { padding-top: calc(1.35rem + env(safe-area-inset-top, 0px)) !important; }
}

@keyframes land-float-center {
  from { transform: translate(-50%, -50%); }
  to { transform: translate(-50%, calc(-50% - 12px)); }
}

/* ==========================================================================
   Reduced motion — calm everything in the redesigned shells
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  body.theme-member *,
  body.theme-member *::before,
  body.theme-member *::after,
  body.theme-guest *,
  body.theme-guest *::before,
  body.theme-guest *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  body.theme-member .btn.is-loading::before,
  body.theme-member button.is-loading::before,
  body.theme-member a.is-loading::before,
  body.theme-guest .btn.is-loading::before,
  body.theme-guest button.is-loading::before,
  body.theme-guest a.is-loading::before {
    animation-duration: 1.15s !important;
    animation-iteration-count: infinite !important;
  }
}
/* ===== end responsive redesign v2 ===== */


/* ==========================================================================
   Earnora admin console — responsive v2 (body.theme-admin.ad-v2)
   Also covers admin/managers + admin/agents. Member/guest/agent untouched.
   mobile < 900: top bar + accessible off-canvas drawer (JS: app.js adminMobileNav)
   tables ≤ 820: stacked record cards (2-up from 600px) · 821–1099: scrollable tables
   desktop ≥ 900: fixed sidebar, content capped ~1400px
   ========================================================================== */
body.theme-admin.ad-v2 {
  --touch: 44px;
  --gutter: max(0.95rem, env(safe-area-inset-left, 0px));
  --gutter-r: max(0.95rem, env(safe-area-inset-right, 0px));
  --ad-bar-h: 60px;
}
body.theme-admin.ad-v2 .admin-main:focus { outline: none; }

/* Keyboard focus ring */
body.theme-admin.ad-v2 :is(a, button, summary, [role="button"], [role="tab"], [tabindex="0"]):focus-visible {
  outline: 2px solid var(--accent) !important;
  outline-offset: 2px !important;
}
body.theme-admin.ad-v2 :is(input, select, textarea):focus-visible {
  outline: 2px solid rgba(61, 207, 142, 0.45);
  outline-offset: 1px;
}

/* Tap feedback on touch devices; no hover-only affordances */
body.theme-admin.ad-v2 :is(.btn, .ad-icon-btn, .side-nav a, .ad-quick-item, .ad-alert, .ad-stat, .admin-nav-toggle, .ad-pager-btn) {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
@media (hover: none) {
  body.theme-admin.ad-v2 :is(.side-nav a, .ad-quick-item, .ad-alert, .ad-stat, .btn):hover { transform: none; }
  body.theme-admin.ad-v2 :is(.btn, .ad-icon-btn, .ad-quick-item, .ad-alert, .side-nav a, .admin-nav-toggle):active {
    transform: scale(0.97);
    transition: transform 0.08s ease;
  }
  /* 44px icon actions for fingers (overrides the inline 36px desk sizing) */
  body.theme-admin.ad-v2 .ad-table .ad-icon-btn,
  body.theme-admin.ad-v2 .ad-icon-btn {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
  }
}

/* ---------- Mobile + tablet (< 900px): top bar + drawer ---------- */
@media (max-width: 899.98px) {
  body.theme-admin.ad-v2 .admin-mobile-bar {
    min-height: calc(var(--ad-bar-h) + env(safe-area-inset-top, 0px));
    padding: calc(0.55rem + env(safe-area-inset-top, 0px)) var(--gutter-r) 0.55rem var(--gutter);
    gap: 0.75rem;
    background: rgba(12, 18, 16, 0.94);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
  }
  body.theme-admin.ad-v2 .admin-nav-toggle {
    width: var(--touch);
    height: var(--touch);
    min-width: var(--touch);
    border-radius: 14px;
  }
  body.theme-admin.ad-v2 .admin-mobile-app {
    margin-left: auto;
    min-height: 40px;
    padding-inline: 1rem;
  }
  body.theme-admin.ad-v2 .admin-main,
  body.theme-admin.ad-v2.is-overview .admin-main {
    padding-top: calc(var(--ad-bar-h) + env(safe-area-inset-top, 0px) + 0.9rem);
    padding-left: var(--gutter);
    padding-right: var(--gutter-r);
    padding-bottom: calc(2.25rem + env(safe-area-inset-bottom, 0px));
  }
  /* Drawer */
  body.theme-admin.ad-v2 .admin-side {
    width: min(300px, 86vw);
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    overscroll-behavior: contain;
  }
  body.theme-admin.ad-v2 .admin-side .side-nav {
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  body.theme-admin.ad-v2 .admin-side .side-nav a { min-height: var(--touch); }
  body.theme-admin.ad-v2 .admin-nav-close {
    width: var(--touch);
    height: var(--touch);
    border-radius: 12px;
  }
  body.theme-admin.ad-v2 .admin-nav-scrim {
    background: rgba(4, 8, 6, 0.6);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }
  body.theme-admin.ad-v2.is-admin-nav-open { overflow: hidden !important; touch-action: none; }
  body.theme-admin.ad-v2.is-admin-nav-open .admin-side { touch-action: pan-y; }
  /* Page header */
  body.theme-admin.ad-v2 .admin-top { margin-bottom: 1rem; }
  body.theme-admin.ad-v2 .admin-top .page-title { font-size: clamp(1.3rem, 5.5vw, 1.6rem); }
  /* Prevent iOS focus zoom */
  body.theme-admin.ad-v2 :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([readonly]), select, textarea) {
    font-size: 16px;
  }
}

/* ---------- Toolbars wrap; filters go full-width on phones ---------- */
body.theme-admin.ad-v2 .ad-toolbar-search { flex-wrap: wrap; }
body.theme-admin.ad-v2 .ad-search-field { flex: 1 1 240px; }
@media (max-width: 560px) {
  body.theme-admin.ad-v2 .ad-toolbar { padding: 0.75rem; gap: 0.65rem; }
  body.theme-admin.ad-v2 .ad-toolbar-search > * { flex: 1 1 100%; max-width: 100%; }
  body.theme-admin.ad-v2 .ad-toolbar > :is(.ad-filter-dropdown, .ad-toolbar-end) { width: 100%; max-width: none; }
  body.theme-admin.ad-v2 .ad-filter-dropdown-control,
  body.theme-admin.ad-v2 .ad-filter-select { width: 100%; max-width: none; min-height: var(--touch); }
  body.theme-admin.ad-v2 .ad-filter-dropdown-control { flex: 1 1 100%; }
  body.theme-admin.ad-v2 .ad-toolbar-end .btn { width: 100%; min-height: var(--touch); justify-content: center; }
  body.theme-admin.ad-v2 .ad-toolbar-search :is(.btn, .ad-toolbar-btn, .ad-search-clear) { min-height: var(--touch); justify-content: center; }
}

/* ---------- Forms: single column on phones ---------- */
@media (max-width: 640px) {
  body.theme-admin.ad-v2 :is(.ad-form-grid, .ad-form-grid-2, .ad-form-grid-3) { grid-template-columns: minmax(0, 1fr) !important; }
  body.theme-admin.ad-v2 :is(.ad-form-grid, .ad-form-grid-2, .ad-form-grid-3) > * { grid-column: 1 / -1 !important; }
  body.theme-admin.ad-v2 .ad-pkg-econ-inputs { grid-template-columns: minmax(0, 1fr) !important; }
  body.theme-admin.ad-v2 :is(.ad-form-actions, .ad-modal-actions) { flex-wrap: wrap; }
  body.theme-admin.ad-v2 :is(.ad-form-actions, .ad-modal-actions) .btn { flex: 1 1 auto; min-height: var(--touch); justify-content: center; }
}

/* ---------- Stat / money cards reflow ---------- */
@media (min-width: 340px) and (max-width: 719.98px) {
  body.theme-admin.ad-v2 .ad-money { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.theme-admin.ad-v2 .ad-money-card { padding: 0.8rem 0.85rem; }
  body.theme-admin.ad-v2 .ad-money-val { font-size: clamp(1rem, 4.6vw, 1.2rem); }
  body.theme-admin.ad-v2 .ad-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; }
  body.theme-admin.ad-v2 .ad-stat { padding: 0.85rem 0.8rem; min-height: 0; }
}
body.theme-admin.ad-v2 .ad-panel-quick .ad-quick,
body.theme-admin.ad-v2 .ad-quick {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 172px), 1fr)) !important;
}
body.theme-admin.ad-v2 .ad-quick-item { min-height: var(--touch); min-width: 0; }
@media (min-width: 720px) {
  body.theme-admin.ad-v2 .ad-alerts { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
body.theme-admin.ad-v2 .ad-quick-item > span:not([class*="ico"]):not([class*="badge"]) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Tables → stacked record cards (≤ 820px) ---------- */
@media (max-width: 820px) {
  body.theme-admin.ad-v2 .ad-table tbody {
    gap: 0.7rem;
    padding: 0.7rem;
  }
  body.theme-admin.ad-v2 .ad-table tbody tr {
    padding: 0.2rem 0.95rem 0.75rem;
    border-radius: 16px;
    align-content: start;
  }
  body.theme-admin.ad-v2 .ad-table td {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    min-height: 0;
    padding: 0.55rem 0;
    text-align: left;
    font-size: 0.88rem;
    overflow-wrap: anywhere;
  }
  body.theme-admin.ad-v2 .ad-table td::before {
    flex: 0 0 6.25rem;
    max-width: 40%;
    padding-top: 0;
    font-family: var(--font, "DM Sans", system-ui, sans-serif);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--muted);
  }
  body.theme-admin.ad-v2 .ad-table td:not([data-label])::before,
  body.theme-admin.ad-v2 .ad-table td[data-label=""]::before { display: none; }
  body.theme-admin.ad-v2 .ad-table td > :is(.badge, .ad-badge, span, a, strong, small, code, .ad-mono) { max-width: 100%; }
  body.theme-admin.ad-v2 .ad-table td.ad-num { font-variant-numeric: tabular-nums; font-weight: 700; }
  /* First cell = record header (no label, bigger) */
  body.theme-admin.ad-v2 .ad-table tbody tr > td:first-child:not(.ad-empty-row) {
    padding-top: 0.8rem;
    padding-bottom: 0.7rem;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(238, 243, 239, 0.07);
  }
  body.theme-admin.ad-v2 .ad-table tbody tr > td:first-child:not(.ad-empty-row)::before { display: none; }
  body.theme-admin.ad-v2 .ad-table tbody tr > td:first-child > * { flex: 1 1 auto; min-width: 0; }
  /* Actions row: right-aligned, finger-sized */
  body.theme-admin.ad-v2 .ad-table td:is([data-label="Actions"], .ad-td-actions) {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 0.2rem;
    padding-top: 0.7rem;
    border-top: 1px solid rgba(238, 243, 239, 0.07);
    border-bottom: 0;
  }
  body.theme-admin.ad-v2 .ad-table td:is([data-label="Actions"], .ad-td-actions)::before { display: none; }
  body.theme-admin.ad-v2 .ad-table td:is([data-label="Actions"], .ad-td-actions) .ad-act {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
    gap: 0.5rem;
    width: 100%;
  }
  body.theme-admin.ad-v2 .ad-table td:is([data-label="Actions"], .ad-td-actions) .btn { min-height: 40px; }
  body.theme-admin.ad-v2 .ad-table td[data-label="Documents"] { display: flex; }
  body.theme-admin.ad-v2 .ad-table td input:not([type="checkbox"]):not([type="radio"]) { flex: 1 1 8rem; min-width: 0; }
  body.theme-admin.ad-v2 .ad-table td.ad-empty-row { justify-content: center; text-align: center; }
  body.theme-admin.ad-v2 .ad-user-cell small { overflow-wrap: anywhere; }
}
@media (min-width: 600px) and (max-width: 820px) {
  body.theme-admin.ad-v2 .ad-table tbody { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.theme-admin.ad-v2 .ad-table tbody tr:has(> td.ad-empty-row) { grid-column: 1 / -1; }
}

/* ---------- 821–1099px: real tables, horizontally scrollable ---------- */
@media (min-width: 821px) and (max-width: 1099.98px) {
  body.theme-admin.ad-v2 .ad-table-card :is(.table-wrap, .ad-table-wrap),
  body.theme-admin.ad-v2 :is(.table-wrap, .ad-table-wrap) {
    overflow-x: auto !important;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  body.theme-admin.ad-v2 :is(.table-wrap, .ad-table-wrap)::-webkit-scrollbar {
    display: block !important;
    height: 8px !important;
  }
  body.theme-admin.ad-v2 :is(.table-wrap, .ad-table-wrap)::-webkit-scrollbar-thumb {
    background: rgba(238, 243, 239, 0.14);
    border-radius: 8px;
  }
  body.theme-admin.ad-v2 :is(.table-wrap, .ad-table-wrap) > .ad-table { min-width: 680px !important; }
}

/* Desktop tables: no mid-word wrapping of emails / ids */
@media (min-width: 821px) {
  body.theme-admin.ad-v2 .ad-user-cell { min-width: 0; }
  body.theme-admin.ad-v2 .ad-user-cell > span { min-width: 0; }
  body.theme-admin.ad-v2 .ad-user-cell small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
  }
  body.theme-admin.ad-v2 .ad-user-cell strong { overflow-wrap: anywhere; }
}

/* ---------- Desktop (≥ 900px): cap the reading width ---------- */
@media (min-width: 900px) {
  body.theme-admin.ad-v2 .admin-main {
    padding-left: max(2rem, calc((100% - 1400px) / 2));
    padding-right: max(2rem, calc((100% - 1400px) / 2));
  }
  body.theme-admin.ad-v2 .admin-side .side-nav { overflow-y: auto; scrollbar-width: thin; }
  body.theme-admin.ad-v2 .admin-side .side-nav a { min-height: 40px; }
}

/* Modals become bottom sheets on phones */
@media (max-width: 560px) {
  body.theme-admin.ad-v2 .ad-modal-dialog {
    width: 100%;
    max-width: none;
    margin: auto 0 0;
    border-radius: 22px 22px 0 0;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  }
  body.theme-admin.ad-v2 .ad-modal:not(.hidden) { align-items: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  body.theme-admin.ad-v2 .admin-side,
  body.theme-admin.ad-v2 .admin-nav-scrim,
  body.theme-admin.ad-v2 :is(.btn, .ad-icon-btn, .side-nav a, .ad-quick-item) { transition: none !important; }
}

/* ==========================================================================
   Manager pages (member shell, body.theme-member) — desktop page grids
   Mobile keeps the original single-column DOM order.
   ========================================================================== */
@media (min-width: 768px) {
  body.theme-member .mpage--mgr .mgr-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body.theme-member .mpage--mgr-add { max-width: 720px; margin-inline: auto; }
}
@media (min-width: 1100px) {
  body.theme-member .mpage--mgr {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    grid-template-areas:
      "hero hero"
      "banner banner"
      "metrics metrics"
      "tier share"
      "comm share"
      "comm steps";
  }
  .mpage--mgr > .mgr-a-hero { grid-area: hero; }
  .mpage--mgr > .mgr-a-banner { grid-area: banner; }
  .mpage--mgr > .mgr-a-metrics { grid-area: metrics; }
  .mpage--mgr > .mgr-a-tier { grid-area: tier; }
  .mpage--mgr > .mgr-a-share { grid-area: share; }
  .mpage--mgr > .mgr-a-steps { grid-area: steps; }
  .mpage--mgr > .mgr-a-comm { grid-area: comm; }
  body.theme-member .mpage--mgr-earn {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "hero hero"
      "banner banner"
      "comm salary";
  }
  .mpage--mgr-earn > .mgr-a-hero { grid-area: hero; }
  .mpage--mgr-earn > .mgr-a-banner { grid-area: banner; }
  .mpage--mgr-earn > .mgr-a-comm { grid-area: comm; }
  .mpage--mgr-earn > .mgr-a-salary { grid-area: salary; }
}

/* ==========================================================================
   Member pages polish — Wallet → Profile (shared components)
   Page heads, manager heroes, KPI tiles, news cards, ticket thread,
   detail pages and purchase history all reuse the Home/Wallet card language.
   ========================================================================== */

/* Shared hero head: plain page heads + manager heads become glass cards */
body.theme-member .page-head:not(.tasks-head),
body.theme-member .mgr-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin: 0 0 0.9rem;
  padding: 1.25rem 1.15rem 1.15rem;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(61, 207, 142, 0.09), transparent 45%),
    linear-gradient(165deg, #1a2a23 0%, #101714 100%);
  border: 1px solid rgba(61, 207, 142, 0.22);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.26);
  animation: rise 0.4s ease both;
}
body.theme-member .page-head:not(.tasks-head)::before,
body.theme-member .mgr-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 220px; height: 220px;
  right: -80px; top: -95px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 194, 122, 0.15), transparent 70%);
  pointer-events: none;
}
body.theme-member .page-head:not(.tasks-head) .eyebrow,
body.theme-member .mgr-hero .eyebrow {
  margin: 0 0 0.3rem;
  color: var(--accent);
  font-weight: 700;
}
body.theme-member .page-head:not(.tasks-head) .eyebrow a { color: inherit; text-decoration: none; }
body.theme-member .page-head:not(.tasks-head) .eyebrow a:hover { text-decoration: underline; }
body.theme-member .page-head:not(.tasks-head) h1,
body.theme-member .mgr-hero h1:not(.mgr-earn-balance) {
  margin: 0 0 0.3rem;
  font-family: var(--display);
  font-size: clamp(1.5rem, 5.5vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  overflow-wrap: anywhere;
}
body.theme-member .page-head:not(.tasks-head) > p.muted {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
}
body.theme-member .mgr-hero .mgr-hero-sub { margin-bottom: 0.9rem; }
body.theme-member .mgr-hero .mgr-pills { margin-bottom: 0; }
body.theme-member .mgr-hero .mgr-pill { background: rgba(0, 0, 0, 0.28); }
body.theme-member .mgr-hero .mgr-pills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.theme-member .mgr-hero .mgr-pill strong { font-size: 1.15rem; }
body.theme-member .mgr-back {
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
}
body.theme-member .mgr-earn-balance {
  font-size: clamp(2.1rem, 9vw, 2.7rem) !important;
  line-height: 1;
  margin: 0 0 0.4rem !important;
  background: linear-gradient(120deg, #fff 10%, var(--accent) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Notifications follow the regular content width like the other pages */
body.theme-member .app-scroll > :is(.notif-head, .notif-stack, .notif-empty) {
  max-width: none;
}
body.theme-member .notif-empty,
body.theme-member .notice-list ~ .notif-empty {
  border-radius: 22px;
}

/* KPI tiles (Earnings): icon on top, value anchored to the bottom */
body.theme-member .st-kpi {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-height: 118px;
}
body.theme-member .st-kpi .st-kpi-ico { margin-bottom: auto; }
body.theme-member .st-kpi .muted { margin-top: 0.75rem; font-size: 0.74rem; }
body.theme-member .st-kpi strong { font-size: 1.35rem; letter-spacing: -0.02em; }
body.theme-member .st-kpi.gold strong { color: var(--accent-2); }

/* News cards with an icon chip */
body.theme-member .notice-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.05rem;
  border-radius: 20px;
  background: linear-gradient(165deg, rgba(28, 38, 34, 0.96), rgba(14, 18, 16, 0.98));
  border: 1px solid var(--line);
  animation: rise 0.4s ease both;
  transition: border-color 0.2s ease;
}
body.theme-member .notice-card:hover { border-color: rgba(61, 207, 142, 0.28); }
.notice-card-ico {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: var(--accent-2);
  background: rgba(232, 194, 122, 0.1);
  border: 1px solid rgba(232, 194, 122, 0.24);
}
.notice-card-body { min-width: 0; display: grid; gap: 0.3rem; }
.notice-card-body strong { font-size: 1rem; line-height: 1.3; }
.notice-card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.notice-card-body time { font-size: 0.74rem; }

/* Purchase history (Plans) */
body.theme-member .plans-history { margin-top: 1.25rem; }
.rf-earn-body strong .wallet-status {
  margin-left: 0.35rem;
  vertical-align: 0.1em;
  font-family: var(--font, inherit);
}

/* Ticket thread: chat bubbles inside a card */
body.theme-member .sp-thread {
  padding: 1rem;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(61, 207, 142, 0.05), transparent 30%),
    linear-gradient(165deg, #1a2420 0%, #111814 100%);
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}
body.theme-member .sp-thread-msgs { padding: 0.2rem 0.1rem; }
body.theme-member .sp-msg {
  max-width: min(88%, 560px);
  border-radius: 16px;
}
body.theme-member .sp-msg.is-user {
  justify-self: end;
  border-bottom-right-radius: 6px;
  background: rgba(0, 0, 0, 0.28);
}
body.theme-member .sp-msg.is-admin,
body.theme-member .sp-msg.is-system {
  justify-self: start;
  border-bottom-left-radius: 6px;
}
body.theme-member .sp-msg header time { font-size: 0.72rem; }
body.theme-member .sp-reply-form {
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}
body.theme-member .sp-reply-form textarea:focus {
  outline: none;
  border-color: rgba(61, 207, 142, 0.45);
  box-shadow: 0 0 0 3px rgba(61, 207, 142, 0.12);
}

/* Detail pages (deposit / withdrawal / ledger entry) */
body.theme-member .tx-detail-card {
  isolation: isolate;
  border-radius: 24px;
  padding: 1.3rem 1.2rem 1.35rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.26);
}
body.theme-member .tx-detail-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 220px; height: 220px;
  right: -80px; top: -95px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 207, 142, 0.16), transparent 70%);
  pointer-events: none;
}
body.theme-member .tx-detail-head h1 {
  font-family: var(--display);
  font-size: clamp(1.45rem, 5vw, 1.8rem);
}
body.theme-member .tx-detail-amount strong {
  font-family: var(--display);
  font-size: clamp(1.8rem, 7vw, 2.2rem);
}
body.theme-member .tx-detail-grid > div {
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(8, 12, 10, 0.4);
}
body.theme-member .tx-detail-back { border-radius: 999px; }

/* Profile edit / password: keep the decorative glow inside the card
   (the card is overflow:visible there for the date picker) */
body.theme-member .pf-edit-page .pf-card > .pf-card-glow {
  right: 0; top: 0;
  width: 150px; height: 150px;
  border-radius: 0 22px 0 100%;
  background: radial-gradient(circle at 100% 0, rgba(61, 207, 142, 0.13), transparent 70%);
}
body.theme-member .pf-edit-page .pf-card > .pf-card-glow.gold {
  background: radial-gradient(circle at 100% 0, rgba(232, 194, 122, 0.15), transparent 70%);
}

/* Phone tuning */
@media (max-width: 767px) {
  body.theme-member .page-head:not(.tasks-head),
  body.theme-member .mgr-hero { padding: 1.1rem 1rem 1rem; border-radius: 22px; }
  body.theme-member .sp-thread { padding: 0.8rem; }
  body.theme-member .sp-msg { max-width: 92%; }
  body.theme-member .st-kpi { min-height: 0; }
  body.theme-member .notice-card { padding: 0.9rem; gap: 0.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  body.theme-member .page-head, body.theme-member .mgr-hero, body.theme-member .notice-card { animation: none !important; }
}

/* ==========================================================================
   Wallet — pro dashboard (hero, quick actions, KPIs, activity card)
   ========================================================================== */
.wallet-hero--pro {
  display: grid;
  gap: 1.15rem;
  padding: 1.35rem 1.2rem 1.2rem;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(61, 207, 142, 0.14), transparent 55%),
    linear-gradient(165deg, #1b2d25 0%, #111a16 55%, #0c1210 100%);
  border-color: rgba(61, 207, 142, 0.26);
}
.wallet-hero--pro > * { position: relative; z-index: 1; }
.wallet-hero--pro > .wallet-hero-glow { position: absolute; z-index: 0; }
.wh-main { min-width: 0; }
.wh-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.wh-top .eyebrow { margin: 0; color: var(--accent); font-weight: 700; }
.wh-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid var(--line);
}
.wh-chip.is-ok { color: var(--accent); border-color: rgba(61, 207, 142, 0.32); background: rgba(61, 207, 142, 0.09); }
.wh-chip.is-warn { color: var(--accent-2); border-color: rgba(232, 194, 122, 0.34); background: rgba(232, 194, 122, 0.09); }
.wh-chip.is-warn:hover { background: rgba(232, 194, 122, 0.16); }
.wallet-hero--pro .wallet-hero-label { margin: 0.85rem 0 0.25rem; font-size: 0.84rem; }
.wallet-hero--pro .wallet-hero-balance {
  font-size: clamp(2.5rem, 12vw, 3.4rem);
  margin: 0 0 0.45rem;
  overflow-wrap: anywhere;
}
.wallet-hero--pro .wallet-hero-sub { margin: 0 0 0.9rem; font-size: 0.82rem; }
.wh-limits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.wh-limits li {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  font-size: 0.74rem;
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid var(--line);
}
.wh-limits strong { font-size: 0.78rem; font-variant-numeric: tabular-nums; }

.wh-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}
.wh-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 76px;
  padding: 0.7rem 0.5rem;
  border-radius: 18px;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid var(--line);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.wh-action:hover { border-color: rgba(61, 207, 142, 0.35); background: rgba(61, 207, 142, 0.08); }
.wh-action:active { transform: scale(0.97); }
.wh-action:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wh-action-ico {
  width: 38px; height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: rgba(61, 207, 142, 0.12);
  border: 1px solid rgba(61, 207, 142, 0.22);
}
.wh-action.is-primary {
  color: #062014;
  border-color: transparent;
  background: linear-gradient(145deg, #5ee0a4 0%, var(--accent) 50%, #2aa86f 100%);
  box-shadow: 0 12px 26px rgba(61, 207, 142, 0.24);
}
.wh-action.is-primary:hover { background: linear-gradient(145deg, #6be6ad 0%, #47d897 50%, #2fb277 100%); }
.wh-action.is-primary .wh-action-ico {
  color: #062014;
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.28);
}

/* KPI strip */
.wallet-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 0 0 0.25rem;
}
.wallet-kpi {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "ico label" "ico value" "ico note";
  column-gap: 0.7rem;
  row-gap: 0.1rem;
  align-items: center;
  padding: 0.85rem 0.9rem;
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(28, 38, 34, 0.96), rgba(14, 18, 16, 0.98));
  border: 1px solid var(--line);
  animation: rise 0.4s ease both;
  min-width: 0;
}
.wallet-kpi-ico {
  grid-area: ico;
  align-self: start;
  width: 36px; height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: rgba(61, 207, 142, 0.1);
  border: 1px solid rgba(61, 207, 142, 0.2);
}
.wallet-kpi-ico.is-gold,
.wallet-kpi-ico.is-warn {
  color: var(--accent-2);
  background: rgba(232, 194, 122, 0.1);
  border-color: rgba(232, 194, 122, 0.24);
}
.wallet-kpi-label { grid-area: label; font-size: 0.72rem; color: var(--muted); font-weight: 600; }
.wallet-kpi strong {
  grid-area: value;
  font-family: var(--display);
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wallet-kpi small {
  grid-area: note;
  font-size: 0.7rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Activity card */
.wallet-activity {
  position: relative;
  margin-top: 1.1rem;
  padding: 1.05rem 1rem 1rem;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(61, 207, 142, 0.05), transparent 28%),
    linear-gradient(165deg, #1a2420 0%, #111814 100%);
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}
.wallet-activity-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.wallet-activity-head h2 { margin: 0 0 0.15rem; font-size: 1.1rem; }
.wallet-activity-head .muted { margin: 0; font-size: 0.78rem; }
.wallet-activity-all {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid rgba(61, 207, 142, 0.25);
  background: rgba(61, 207, 142, 0.07);
  white-space: nowrap;
}
.wallet-activity-all:hover { background: rgba(61, 207, 142, 0.14); }
.wallet-filter {
  display: flex;
  gap: 0.3rem;
  padding: 0.25rem;
  margin-bottom: 0.8rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
}
.wallet-filter-btn {
  flex: 1 1 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 38px;
  padding: 0.4rem 0.5rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.wallet-filter-btn:hover { color: var(--ink); }
.wallet-filter-btn.is-active {
  color: var(--ink);
  background: rgba(61, 207, 142, 0.14);
  box-shadow: inset 0 0 0 1px rgba(61, 207, 142, 0.28);
}
.wallet-filter-count {
  min-width: 1.25rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  font-size: 0.66rem;
  line-height: 1.25rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.07);
}
.wallet-activity-panel.is-hidden { display: none; }
.wallet-activity-panel { animation: rise 0.3s ease both; }
.wallet-activity .wallet-tx-list { gap: 0.45rem; }
.wallet-activity .wallet-tx {
  padding: 0.75rem 0.8rem;
  background: rgba(8, 12, 10, 0.42);
}
.wallet-activity .wallet-tx-meta strong { font-variant-numeric: tabular-nums; font-size: 0.95rem; }
.wallet-tx-meta strong.is-void { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(143, 163, 153, 0.6); }
.wallet-tx-ico { border: 1px solid var(--line); color: var(--muted); background: rgba(255, 255, 255, 0.04); }
.wallet-tx-ico.k-deposit,
.wallet-tx-ico.k-task {
  color: var(--accent);
  background: rgba(61, 207, 142, 0.1);
  border-color: rgba(61, 207, 142, 0.22);
}
.wallet-tx-ico.k-withdraw,
.wallet-tx-ico.k-plan,
.wallet-tx-ico.k-bonus {
  color: var(--accent-2);
  background: rgba(232, 194, 122, 0.1);
  border-color: rgba(232, 194, 122, 0.24);
}
.wallet-tx-ico.k-refer,
.wallet-tx-ico.k-game {
  color: #8fd3ff;
  background: rgba(143, 211, 255, 0.09);
  border-color: rgba(143, 211, 255, 0.22);
}
.wallet-activity-more {
  display: block;
  margin-top: 0.7rem;
  padding: 0.6rem;
  border-radius: 12px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  border: 1px dashed rgba(61, 207, 142, 0.25);
}
.wallet-activity-none { margin: 0; padding: 1.2rem 0.5rem; text-align: center; font-size: 0.85rem; }
.wallet-activity-empty {
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  padding: 1.6rem 0.75rem 1.2rem;
  text-align: center;
}
.wallet-activity-empty-ico {
  width: 56px; height: 56px;
  margin-bottom: 0.35rem;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: rgba(61, 207, 142, 0.1);
  border: 1px solid rgba(61, 207, 142, 0.22);
}
.wallet-activity-empty strong { font-size: 1rem; }
.wallet-activity-empty .muted { margin: 0 0 0.6rem; font-size: 0.84rem; max-width: 30ch; }

/* Tablet+ */
@media (min-width: 640px) {
  .wallet-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  body.theme-member .wallet-hero--pro {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
    align-items: end;
    gap: 1.5rem;
    padding: 1.7rem 1.7rem 1.6rem;
  }
  .wh-action { min-height: 88px; }
}
@media (min-width: 1100px) {
  body.theme-member .wallet-side { position: static; }
  body.theme-member .wallet-side .wallet-activity { margin-top: 0; }
  body.theme-member .wallet-layout { margin-top: 1.1rem; }
}
@media (max-width: 380px) {
  .wh-action { min-height: 70px; font-size: 0.8rem; }
  .wallet-kpi { padding: 0.75rem; column-gap: 0.55rem; }
  .wallet-kpi-ico { width: 32px; height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .wallet-kpi, .wallet-activity-panel { animation: none !important; }
}

/* Wallet — refinement pass (hierarchy + phone density) */
.wh-top { justify-content: flex-start; flex-wrap: wrap; gap: 0.55rem; }
.wh-limits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 440px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid var(--line);
  overflow: hidden;
}
.wh-limits li {
  display: grid;
  gap: 0.1rem;
  padding: 0.5rem 0.7rem;
  border: 0;
  border-radius: 0;
  background: none;
  min-width: 0;
}
.wh-limits li + li { border-left: 1px solid var(--line); }
.wh-limits .muted { font-size: 0.66rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wh-limits strong { font-size: 0.86rem; }
.wallet-kpis { margin: 0.85rem 0 0.25rem; }
.wallet-hero--pro + .wallet-kpis { margin-top: 0; }
.wallet-kpi small { white-space: normal; line-height: 1.3; }
@media (max-width: 639px) {
  .wallet-kpi {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "ico label" "value value" "note note";
    row-gap: 0.2rem;
    padding: 0.8rem;
  }
  .wallet-kpi-ico { width: 30px; height: 30px; border-radius: 10px; align-self: center; }
  .wallet-kpi-ico svg { width: 16px; height: 16px; }
  .wallet-kpi-label { line-height: 1.2; }
  .wallet-kpi strong { margin-top: 0.35rem; font-size: 1.2rem; }
  .wallet-hero--pro { gap: 1rem; padding: 1.2rem 1.05rem 1.05rem; }
  .wallet-hero--pro .wallet-hero-label { margin-top: 0.7rem; }
  .wh-action { min-height: 72px; border-radius: 16px; }
  .wh-action-ico { width: 34px; height: 34px; }
}
body.theme-member :is(#deposit, #withdraw, #wallet-activity) { scroll-margin-top: 1rem; }
.wallet-filter-btn { flex: 1 1 auto; }
.wallet-filter-btn[data-hist="ledger"] { flex: 0.7 1 auto; }
@media (max-width: 420px) {
  .wallet-filter-btn { padding: 0.4rem 0.4rem; gap: 0.25rem; font-size: 0.78rem; }
}

/* ===== PayVerify + security banners (v30) ===== */
.pv-banners{display:flex;flex-direction:column;gap:.4rem;margin:0 0 1rem}
.pv-banner{display:block;padding:.65rem .9rem;border-radius:12px;font-size:.9rem;font-weight:600;text-decoration:none;border:1px solid transparent}
.pv-banner-danger{background:rgba(220,38,38,.12);border-color:rgba(220,38,38,.45);color:#fca5a5}
.pv-banner-warning{background:rgba(245,158,11,.12);border-color:rgba(245,158,11,.4);color:#fcd34d}
.ad-payverify .pv-row-danger td{background:rgba(220,38,38,.08)}
.ad-payverify .pv-danger{color:#f87171}
.ad-payverify .pv-code code{font-size:1.6rem;letter-spacing:.18em}
.ad-payverify .pv-qr{width:220px;max-width:100%;background:#fff;padding:10px;border-radius:12px;margin:.5rem 0}
.ad-payverify .pv-qr img,.ad-payverify .pv-qr svg{width:100%;height:auto;display:block}
.ad-payverify .pv-actions form{display:inline-flex;gap:.3rem;margin:.15rem 0}
.ad-payverify .pv-pre{white-space:pre-wrap;word-break:break-word;max-height:320px;overflow:auto;background:rgba(255,255,255,.04);padding:.75rem;border-radius:10px}
.ad-payverify .ad-grid-3{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:.75rem;margin:.75rem 0}
.ad-payverify .ad-grid-3 label{display:flex;flex-direction:column;gap:.3rem;font-size:.85rem}
.tf-qr{width:220px;background:#fff;padding:10px;border-radius:12px}
.tf-qr img,.tf-qr svg{width:100%;height:auto;display:block}
.tf-code-list{list-style:none;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.35rem;font-family:ui-monospace,monospace}
.tf-codes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.35rem;font-family:ui-monospace,monospace}
