:root {
  color-scheme: dark;
  --bg: #030405;
  --bg-2: #090b0f;
  --text: #f6f0df;
  --muted: #a89f8a;
  --line: rgba(245, 190, 70, 0.16);
  --panel: rgba(17, 18, 20, 0.82);
  --soft: rgba(255, 196, 58, 0.08);
  --accent: #f6c453;
  --accent-2: #ffe08a;
  --accent-strong: #c88b1d;
  --button-bg: rgba(246, 196, 83, 0.14);
  --button-hover: rgba(246, 196, 83, 0.22);
  --button-text: #ffe9a6;
  --card-fill: rgba(255, 255, 255, 0.045);
  --wallet-fill: rgba(246, 196, 83, 0.07);
  --code-text: #ffe7a0;
  --stat-text: #ffdf58;
  --danger: #dc4a3d;
  --warning: #f0a020;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.46);
  --mx: 50vw;
  --my: 28vh;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #d8d1bc;
  --bg-2: #eee7d4;
  --text: #18140b;
  --muted: #665b42;
  --line: rgba(128, 88, 12, 0.28);
  --panel: rgba(232, 225, 207, 0.9);
  --soft: rgba(150, 103, 14, 0.13);
  --accent: #bd8b1b;
  --accent-2: #5b3d08;
  --accent-strong: #8c5f08;
  --button-bg: rgba(126, 88, 14, 0.13);
  --button-hover: rgba(126, 88, 14, 0.23);
  --button-text: #211604;
  --card-fill: rgba(218, 210, 189, 0.82);
  --wallet-fill: rgba(239, 231, 209, 0.92);
  --code-text: #231805;
  --stat-text: #151007;
  --shadow: 0 18px 52px rgba(64, 48, 17, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 0%, var(--bg-2) 0, var(--bg) 48%, var(--bg) 100%);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}

.mouse-bg,
.grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.mouse-bg {
  z-index: -2;
  background:
    radial-gradient(480px circle at var(--mx) var(--my), rgba(246, 196, 83, 0.22), transparent 55%),
    radial-gradient(900px circle at calc(var(--mx) * 0.75) calc(var(--my) + 28vh), rgba(120, 83, 0, 0.18), transparent 65%);
  transition: background 120ms linear;
}

.grid-bg {
  z-index: -1;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(246, 196, 83, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 196, 83, 0.08) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at var(--mx) var(--my), black 0, transparent 70%);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
.bot-link {
  min-height: 36px;
  border: 1px solid rgba(255, 224, 138, 0.18);
  border-radius: 7px;
  background: var(--button-bg);
  color: var(--button-text);
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  box-shadow: none;
}

button:hover,
.bot-link:hover {
  background: var(--button-hover);
  transform: translateY(-1px);
}

.bot-link {
  display: grid;
  place-items: center;
  padding: 0 12px;
}

.topbar {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(18px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(5, 6, 8, 0.72);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 10;
}

:root[data-theme="light"] .topbar {
  background: rgba(232, 225, 207, 0.82);
}

.brand,
.top-actions,
.deal-actions,
.section-head,
.nav-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand {
  font-weight: 900;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 30px;
  border-radius: 8px;
  background: #d9a72d;
  color: #070707;
  box-shadow: 0 0 22px rgba(246, 196, 83, 0.22);
}

.icon-btn {
  width: 38px;
  padding: 0;
  background: var(--button-bg);
  color: var(--accent-2);
  position: relative;
}

.shell {
  width: min(860px, calc(100vw - 28px));
  margin: 28px auto 52px;
}

.auth-grid {
  display: grid;
  justify-items: center;
  gap: 28px;
  min-height: calc(100vh - 92px);
  align-content: center;
}

.intro {
  width: min(720px, 100%);
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  margin-bottom: 18px;
  border: 1px solid rgba(246, 196, 83, 0.18);
  border-radius: 999px;
  background: rgba(246, 196, 83, 0.08);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.intro h1,
.headline h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: 0;
  text-shadow: 0 0 34px rgba(246, 196, 83, 0.12);
}

.intro p {
  max-width: 620px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.panel,
.deal {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.panel {
  padding: 16px;
}

.auth-card {
  width: min(360px, 100%);
  padding: 18px;
}

.auth-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(246, 196, 83, 0.12);
  color: var(--accent-2);
  font-size: 24px;
  box-shadow: inset 0 0 18px rgba(246, 196, 83, 0.08);
}

.tabs,
.nav-tabs {
  padding: 3px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 14px;
}

.tab,
.nav-tab {
  min-height: 32px;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
}

.tab.active,
.nav-tab.active {
  background: rgba(246, 196, 83, 0.12);
  color: var(--accent-2);
  border-color: rgba(246, 196, 83, 0.2);
}

.form {
  display: grid;
  gap: 10px;
}

.form h2,
.panel h2,
.section-head h2,
.how-it-works h2 {
  margin: 0;
  font-size: 18px;
  color: var(--text);
}

label {
  display: grid;
  gap: 6px;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(246, 196, 83, 0.14);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.24);
  color: var(--text);
  padding: 9px 10px;
  outline: none;
}

:root[data-theme="light"] input,
:root[data-theme="light"] select,
:root[data-theme="light"] textarea {
  background: rgba(241, 235, 219, 0.86);
  color: var(--text);
}

select {
  color-scheme: dark;
}

:root[data-theme="light"] select {
  color-scheme: light;
}

select option {
  background: #12100b;
  color: #ffe7a0;
}

:root[data-theme="light"] select option {
  background: #e8dfc7;
  color: #2a1d05;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(255, 224, 138, 0.52);
  box-shadow: 0 0 0 3px rgba(246, 196, 83, 0.11);
}

.how-it-works {
  width: min(760px, 100%);
  text-align: center;
  margin-top: 18px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.steps span {
  display: grid;
  gap: 8px;
  justify-items: center;
  color: var(--muted);
  font-weight: 700;
}

.steps b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #d9a72d;
  color: #090704;
}

.app,
.section-stack,
.deals,
.wallet-list {
  display: grid;
  gap: 6px;
}

.headline {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 8px;
  width: min(720px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.user-tools {
  position: relative;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.notify-btn {
  width: 34px;
  min-height: 32px;
  align-self: end;
}

.notify-count {
  position: absolute;
  right: -5px;
  top: 15px;
  min-width: 16px;
  min-height: 16px;
  display: grid;
  place-items: center;
  border-radius: 99px;
  background: var(--danger);
  color: white;
  font-size: 10px;
  font-weight: 900;
}

.notify-count:empty {
  display: none;
}

.notify-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  width: min(320px, calc(100vw - 28px));
  max-height: 360px;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.search-page {
  width: min(520px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 10px;
}

.search-results-inline {
  display: grid;
  gap: 8px;
}

.user-result-card {
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 64px;
  cursor: pointer;
}

.user-result-card:hover {
  border-color: rgba(255, 224, 138, 0.42);
}

.result-avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid var(--accent);
  border-radius: 9px;
  background: var(--wallet-fill);
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 900;
}

.result-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.result-main,
.result-stats {
  display: grid;
  gap: 3px;
}

.result-main {
  min-width: 0;
}

.result-main b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-stats {
  justify-items: center;
  min-width: 58px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
}

.result-stats b {
  color: var(--accent-2);
}

.public-profile {
  display: grid;
  gap: 10px;
}

.back-search {
  justify-self: start;
  padding: 0 12px;
}

.public-info {
  width: min(520px, 100%);
  justify-self: center;
}

.public-info p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.contact-grid div {
  display: grid;
  gap: 4px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wallet-fill);
  min-width: 0;
}

.contact-grid span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.notify-item,
.search-card {
  width: 100%;
  display: grid;
  gap: 4px;
  padding: 9px;
  border: 1px solid rgba(246, 196, 83, 0.12);
  border-radius: 8px;
  background: var(--card-fill);
  color: var(--text);
  text-align: left;
  box-shadow: none;
}

.notify-item + .notify-item,
.search-card + .search-card {
  margin-top: 6px;
}

.notify-item span,
.search-card span,
.search-card small {
  color: var(--muted);
  font-size: 12px;
}

.notify-item.unread {
  border-color: rgba(255, 224, 138, 0.38);
  background: rgba(246, 196, 83, 0.12);
}

.headline h1 {
  font-size: clamp(28px, 4vw, 44px);
}

.muted,
.hint {
  color: var(--muted);
}

.hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
}

.deal-layout,
.support-grid {
  width: min(720px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 14px;
  align-items: start;
}

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

.row.triple {
  grid-template-columns: repeat(3, 1fr);
}

.deal {
  padding: 13px;
}

.deal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.deal h3 {
  margin: 0;
  font-size: 17px;
}

.deal-compact {
  padding: 11px;
  overflow: hidden;
}

.deal-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "info amount"
    "info status";
  gap: 6px 12px;
  align-items: start;
}

.deal-main > div:first-child {
  grid-area: info;
  min-width: 0;
}

.deal-main > strong {
  grid-area: amount;
  justify-self: end;
  text-align: right;
  white-space: nowrap;
}

.deal-main > .status {
  grid-area: status;
  justify-self: end;
  max-width: 100%;
}

.deal-main h3 {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deal-terms {
  max-width: 420px;
}

.deal-terms summary {
  cursor: pointer;
  color: var(--text);
  font-size: 17px;
  font-weight: 900;
  list-style-position: inside;
}

.deal-terms p {
  margin: 7px 0 0;
  color: var(--muted);
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.deal-details {
  display: grid;
  gap: 10px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.detail-grid div,
.detail-block {
  display: grid;
  gap: 4px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card-fill);
}

.detail-grid strong,
.detail-block strong {
  color: var(--accent-2);
  font-size: 12px;
}

.detail-grid span,
.detail-block p {
  margin: 0;
  color: var(--text);
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.detail-copy-row {
  display: grid;
  gap: 6px;
  margin: 10px 0;
  padding: 10px;
  border-radius: 8px;
  background: var(--card-fill);
  border: 1px solid var(--line);
}

.copy-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.status {
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(246, 196, 83, 0.12);
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-right: 4px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.status-ok {
  background: rgba(69, 197, 117, 0.18);
  color: #74e59b;
}

.status-bad {
  background: rgba(220, 74, 61, 0.18);
  color: #ff9a8f;
}

.status-neutral {
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.status-dispute {
  background: rgba(220, 74, 61, 0.16);
  color: #ff9a8f;
}

.status-cancelled {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.wallet,
.notice {
  display: grid;
  gap: 4px;
  margin: 4px 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--wallet-fill);
  border: 1px solid rgba(246, 196, 83, 0.12);
}

.wallet code {
  overflow-wrap: anywhere;
  color: var(--code-text);
  font-size: 11px;
  line-height: 1.25;
}

.wallet-address {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px;
  align-items: center;
}

.copy-mini {
  width: 28px;
  min-height: 26px;
  padding: 0;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1;
}

.compact-wallets {
  gap: 8px;
  margin-top: 12px;
}

.compact-wallets .wallet {
  margin: 0;
  padding: 7px 9px;
}

.seed-box code {
  color: #ffefb1;
}

.deal-actions {
  flex-wrap: wrap;
}

.deal-actions button {
  min-height: 32px;
  padding: 0 10px;
}

.secondary {
  background: var(--card-fill);
  color: var(--button-text);
  box-shadow: none;
}

.secondary:hover {
  background: rgba(246, 196, 83, 0.16);
}

.primary-action {
  background: var(--button-bg);
  color: var(--button-text);
  border-color: rgba(255, 224, 138, 0.22);
}

.primary-action:hover {
  background: var(--button-hover);
}

.danger {
  background: var(--danger);
  color: white;
}

.danger:hover {
  background: #c83e32;
}

.warning {
  background: var(--warning);
  color: #140d02;
}

.warning:hover {
  background: #d88c12;
}

.empty {
  padding: 18px;
  border: 1px dashed rgba(246, 196, 83, 0.18);
  border-radius: 8px;
  background: var(--card-fill);
  color: var(--muted);
  text-align: center;
}

.profile-grid,
.admin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.profile-card {
  width: min(520px, 100%);
  justify-self: center;
  overflow: hidden;
  border: 1px solid rgba(246, 196, 83, 0.22);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.profile-cover {
  min-height: 210px;
  display: grid;
  place-items: end center;
  padding: 28px;
  background:
    linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.72) 100%),
    radial-gradient(circle at 50% 35%, rgba(246, 196, 83, 0.18), transparent 34%),
    linear-gradient(135deg, #1f1f1f, #050505);
}

:root[data-theme="light"] .profile-cover {
  background:
    linear-gradient(180deg, rgba(226, 216, 190, 0.16) 20%, rgba(210, 197, 163, 0.92) 100%),
    radial-gradient(circle at 50% 35%, rgba(164, 113, 19, 0.22), transparent 36%),
    linear-gradient(135deg, #d7cba9, #bbae83);
}

.profile-avatar {
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 4px solid #ffdf58;
  border-radius: 50%;
  background: var(--card-fill);
  color: #ffdf58;
  font-weight: 900;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.42);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-info {
  padding: 16px;
}

.profile-info h2 {
  margin: 0;
  font-size: 25px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-info p {
  margin: 5px 0 14px;
  color: var(--muted);
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.profile-stats div {
  min-height: 68px;
  display: grid;
  align-content: center;
  justify-items: center;
  border: 1px solid rgba(246, 196, 83, 0.16);
  border-radius: 10px;
  background: var(--card-fill);
}

.profile-stats b {
  color: var(--stat-text);
  font-size: 20px;
}

.profile-stats span {
  color: var(--muted);
  font-size: 12px;
}

.wallet-panel {
  width: min(520px, 100%);
  justify-self: center;
  border-color: rgba(255, 223, 88, 0.24);
}

.wallet-panel .section-head {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
}

#profileGrid > .panel.wide {
  width: min(520px, 100%);
  justify-self: center;
}

.deposit-wallet {
  position: relative;
  min-height: 0;
}

.deposit-wallet::before {
  content: none;
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(255, 223, 88, 0.25), transparent);
  opacity: 0.35;
  pointer-events: none;
}

.support-answers {
  display: grid;
  gap: 14px;
}

.support-replies {
  display: grid;
  gap: 10px;
}

.support-thread {
  display: grid;
  gap: 7px;
  padding: 9px;
  border: 1px solid rgba(246, 196, 83, 0.13);
  border-radius: 9px;
  background: var(--card-fill);
}

.support-message {
  display: grid;
  gap: 4px;
  padding: 8px;
  border-radius: 8px;
}

.support-message strong {
  color: #ffe08a;
  font-size: 12px;
}

.support-message span {
  color: var(--muted);
}

.user-message {
  background: var(--card-fill);
}

.admin-message {
  background: var(--wallet-fill);
}

.metric {
  display: grid;
  gap: 5px;
  padding: 14px;
}

.metric span {
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
}

.metric strong {
  font-size: 22px;
}

.wide {
  grid-column: auto;
}

.table {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.table > div,
.admin-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: center;
  padding: 9px;
  border: 1px solid rgba(246, 196, 83, 0.11);
  border-radius: 8px;
  background: var(--card-fill);
}

.admin-deal-row {
  grid-template-columns: 1fr auto;
}

.admin-user {
  display: grid;
  gap: 8px;
  border-color: var(--line);
}

.user-deals {
  display: grid;
  gap: 5px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

.mini-deal {
  display: grid;
  gap: 3px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--wallet-fill);
}

.dispute-card {
  display: grid;
  gap: 9px;
}

.dispute-chat {
  display: grid;
  gap: 6px;
  max-height: 260px;
  overflow: auto;
  padding: 7px;
  border: 1px solid rgba(246, 196, 83, 0.12);
  border-radius: 8px;
  background: var(--card-fill);
}

.chat-message {
  width: fit-content;
  max-width: 84%;
  display: grid;
  gap: 3px;
  padding: 8px;
  border-radius: 8px;
  background: var(--card-fill);
}

.chat-message.own {
  justify-self: end;
  background: rgba(246, 196, 83, 0.16);
}

.chat-message strong {
  color: var(--accent-2);
  font-size: 12px;
}

.chat-message span {
  overflow-wrap: anywhere;
}

.dispute-message-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.table > div > span,
.admin-row span {
  display: block;
  color: var(--muted);
  margin-top: 3px;
  font-size: 12px;
}

.compact-form {
  max-width: 460px;
  margin-bottom: 12px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(480px, calc(100vw - 28px));
  padding: 11px 14px;
  border-radius: 8px;
  background: var(--accent);
  color: #080603;
  box-shadow: var(--shadow);
  z-index: 30;
  font-weight: 800;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 25;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
}

.modal-card {
  position: relative;
  width: min(480px, calc(100vw - 28px));
  margin: 12vh auto;
  padding: 16px;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .topbar {
    padding: 0 14px;
  }

  .shell {
    margin: 20px auto 40px;
  }

  .deal-layout,
  .support-grid,
  .profile-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .headline {
    align-items: start;
    flex-direction: column;
  }

  .user-tools {
    width: 100%;
  }

  .nav-tabs {
    width: 100%;
    overflow-x: auto;
  }

  .row,
  .row.triple,
  .contact-grid,
  .table div,
  .admin-row,
  .dispute-message-form {
    grid-template-columns: 1fr;
  }

  .deal-main {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Auth flow: site-native gold glass */
.gross-auth {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  justify-items: center;
  gap: 24px;
  padding-top: 44px;
}
.gross-hero { text-align: center; max-width: 720px; }
.gross-hero .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-2);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 900;
  box-shadow: inset 0 0 24px rgba(246, 196, 83, 0.05);
}
.gross-hero h1 {
  margin: 26px 0 14px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.045em;
  color: var(--text);
  text-shadow: 0 0 28px rgba(246, 196, 83, 0.14);
}
.gross-hero p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}
.gross-auth-card,
.pin-card,
.seed-card,
.restore-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.026)),
    var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.gross-auth-card {
  width: min(390px, 92vw);
  padding: 30px;
  text-align: center;
  border-radius: 16px;
}
.fingerprint,
.key-icon,
.restore-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: radial-gradient(circle at 35% 25%, var(--accent-2), var(--accent));
  color: #090806;
  font-size: 30px;
  box-shadow: 0 0 32px rgba(246, 196, 83, 0.22);
}
.gross-auth-card h2,
.pin-card h2,
.seed-card h2,
.restore-card h2 {
  margin: 0 0 10px;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.primary-auth,
.telegram-auth,
.pin-card button,
.seed-card button,
.restore-card button {
  width: 100%;
  min-height: 48px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}
.primary-auth,
.pin-card button,
.seed-card button,
.restore-card button:not(.secondary) {
  border: 1px solid rgba(255, 224, 138, 0.3);
  background: linear-gradient(180deg, rgba(246,196,83,.28), rgba(246,196,83,.14));
  color: var(--accent-2);
}
.telegram-auth {
  border: 1px solid rgba(255, 224, 138, 0.16);
  background: rgba(255,255,255,.055);
  color: var(--text);
}
.auth-separator {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: var(--muted);
  font-size: 13px;
}
.auth-separator span { height: 1px; background: var(--line); }
.auth-flow { width: min(1080px, 94vw); }
.pin-card,
.restore-card {
  max-width: 540px;
  margin: 0 auto;
  padding: 42px 26px;
  text-align: center;
  border-radius: 18px;
}
.pin-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin: 26px auto 18px;
  max-width: 360px;
}
.pin-grid input {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--wallet-fill);
  color: var(--text);
  text-align: center;
  font-size: 28px;
  font-weight: 900;
  outline: none;
}
.pin-grid input:focus {
  border-color: rgba(255, 224, 138, 0.55);
  box-shadow: 0 0 0 4px rgba(246, 196, 83, 0.13);
}
.security-note,
.rules-row {
  margin: 8px auto 22px;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid rgba(246, 196, 83, .28);
  background: rgba(246, 196, 83, .09);
  color: var(--accent-2);
  font-weight: 900;
  text-align: left;
}
.seed-card {
  position: relative;
  padding: 32px 34px;
  border-radius: 18px;
}
.seed-card h2 {
  font-size: clamp(28px, 4vw, 42px);
  text-shadow: 0 0 24px rgba(246, 196, 83, 0.16);
}
.rules-row {
  margin: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.seed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(0,0,0,.14);
  border: 1px solid var(--line);
}
.seed-word {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding: 0 13px;
  border-radius: 11px;
  background: var(--card-fill);
  border: 1px solid rgba(255, 224, 138, 0.11);
}
.seed-word small { color: var(--muted); font-weight: 900; }
.seed-word b { color: var(--text); }
.floating-copy {
  position: static;
  width: auto !important;
  min-height: 46px !important;
  padding: 0 16px;
  border-radius: 12px !important;
}
.seed-actions {
  display: grid;
  grid-template-columns: minmax(170px, .55fr) 1fr;
  gap: 12px;
  margin-top: 22px;
}
.seed-card > button:last-child { margin-top: 22px; }
.compact-seed-card { max-width: 610px; margin: 0 auto; }
.restore-card textarea,
.restore-card input,
.compact-seed-card input {
  background: var(--wallet-fill);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 11px;
}
.restore-card .row { grid-template-columns: 1fr 1fr; }
.restore-card .secondary {
  background: rgba(255,255,255,.06);
  color: var(--text);
}
:root[data-theme="light"] .gross-auth-card,
:root[data-theme="light"] .pin-card,
:root[data-theme="light"] .seed-card,
:root[data-theme="light"] .restore-card {
  background: rgba(232, 225, 207, 0.92);
}
@media (max-width: 760px) {
  .gross-auth { padding-top: 22px; }
  .gross-hero h1 { font-size: 40px; }
  .seed-grid { grid-template-columns: 1fr; padding: 12px; }
  .seed-card { padding: 24px 14px; }
  .pin-grid { gap: 7px; }
}

/* Auth polish pass: tighter, richer, site-native */
body {
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
}
.gross-auth {
  padding-top: 18px;
  gap: 18px;
}
.shell:has(.gross-auth) {
  margin-top: 12px;
}
.gross-hero .hero-badge {
  padding: 8px 15px;
  font-size: 13px;
  letter-spacing: .01em;
}
.gross-hero h1 {
  margin: 20px 0 10px;
  font-family: "Trebuchet MS", "Arial Black", "Segoe UI", sans-serif;
  font-weight: 1000;
  font-size: clamp(44px, 6vw, 68px);
  letter-spacing: -0.065em;
  text-wrap: balance;
}
.gross-hero p {
  margin: 0;
  font-size: 16px;
}
.gross-auth-card {
  width: min(390px, 92vw);
  padding: 26px 30px 30px;
  border-radius: 18px;
  background:
    radial-gradient(380px circle at 50% -8%, rgba(246, 196, 83, .15), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025)),
    var(--panel);
}
.auth-image-wrap {
  width: 88px;
  height: 88px;
  margin: 0 auto 18px;
  border-radius: 22px;
  padding: 3px;
  background: linear-gradient(135deg, var(--accent-2), rgba(18, 92, 41, .95), var(--accent));
  box-shadow: 0 18px 44px rgba(0,0,0,.42), 0 0 34px rgba(246,196,83,.2);
  overflow: hidden;
}
.auth-logo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 19px;
  filter: saturate(1.08) contrast(1.05);
}
.gross-auth-card h2 {
  font-size: 25px;
  margin-bottom: 9px;
}
.gross-auth-card .muted {
  line-height: 1.25;
  margin-bottom: 18px;
}
.primary-auth,
.telegram-auth {
  min-height: 48px;
  border-radius: 9px;
  letter-spacing: -0.01em;
}
.primary-auth {
  background: linear-gradient(180deg, rgba(246,196,83,.34), rgba(117,86,31,.52));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 12px 32px rgba(0,0,0,.18);
}
.telegram-auth {
  background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035));
}
.passkey-glyph,
.tg-glyph {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  color: #0a0804;
  background: var(--accent-2);
  font-weight: 1000;
}
.tg-glyph {
  background: rgba(255,255,255,.9);
  color: #161616;
  border-radius: 50%;
}
.auth-separator {
  margin: 20px 0;
}
.passkey-dialog {
  width: min(520px, 92vw);
  padding: 30px;
  border-radius: 18px;
  background:
    radial-gradient(420px circle at 50% -15%, rgba(246, 196, 83, .16), transparent 64%),
    var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: center;
}
.passkey-mini-logo {
  width: 76px;
  height: 76px;
  margin-bottom: 16px;
}
.passkey-dialog h2 {
  margin: 0 0 10px;
  font-size: 28px;
  letter-spacing: -0.04em;
}
.passkey-options {
  display: grid;
  gap: 10px;
  margin: 22px 0 14px;
}
.passkey-options button {
  min-height: 64px;
  display: grid;
  gap: 3px;
  text-align: left;
  justify-items: start;
  padding: 13px 16px;
  border-radius: 12px;
  background: var(--card-fill);
}
.passkey-options button b {
  color: var(--text);
  font-size: 15px;
}
.passkey-options button span {
  color: var(--muted);
  font-size: 13px;
}
.passkey-dialog > .secondary {
  width: 100%;
  background: rgba(255,255,255,.055);
}
@media (max-height: 820px) {
  .gross-auth { padding-top: 6px; gap: 14px; }
  .gross-hero h1 { margin-top: 14px; font-size: clamp(38px, 5.4vw, 58px); }
  .gross-auth-card { padding-top: 22px; }
  .auth-image-wrap { width: 78px; height: 78px; margin-bottom: 14px; }
}
.passkey-glyph::before {
  content: "";
  width: 11px;
  height: 8px;
  border: 2px solid currentColor;
  border-left-width: 4px;
  border-radius: 2px;
  transform: skewX(14deg);
}
.tg-glyph::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 9px solid currentColor;
  transform: translateX(1px);
}

/* Telegram-only auth cleanup */
.gross-auth {
  padding-top: 0 !important;
  gap: 12px !important;
}
.shell:has(.gross-auth) {
  margin-top: 4px !important;
}
.gross-hero h1 {
  margin-top: 14px !important;
  margin-bottom: 8px !important;
}
.gross-hero p {
  margin-bottom: 2px !important;
}
.telegram-only-card {
  margin-top: 4px;
  padding-top: 22px !important;
}
.telegram-only-card .auth-image-wrap {
  width: 118px;
  height: 86px;
  border-radius: 16px;
  padding: 2px;
}
.telegram-only-card .auth-logo-image {
  border-radius: 14px;
  object-fit: cover;
}
.telegram-only-card h2 {
  margin-top: 2px;
}
.telegram-only-card .muted {
  max-width: 320px;
  margin-inline: auto;
}
.telegram-main-auth {
  margin-top: 4px;
  min-height: 52px;
}
.primary-auth,
.auth-separator,
.passkey-dialog,
.passkey-options,
.passkey-glyph {
  display: none !important;
}
@media (max-height: 820px) {
  .gross-auth { padding-top: 0 !important; }
  .gross-hero h1 { margin-top: 10px !important; }
  .telegram-only-card .auth-image-wrap { width: 106px; height: 78px; }
}

/* Force auth page to sit near top, not vertical center */
.shell:has(.gross-auth) {
  margin-top: 0 !important;
  margin-bottom: 24px !important;
}
.auth-grid.gross-auth {
  min-height: auto !important;
  align-content: start !important;
  padding-top: 10px !important;
  transform: translateY(-26px);
}
.gross-hero .hero-badge {
  margin-bottom: 8px !important;
}
.gross-hero h1 {
  margin-top: 10px !important;
}
@media (max-height: 820px) {
  .auth-grid.gross-auth { transform: translateY(-18px); padding-top: 6px !important; }
}
@media (max-width: 760px) {
  .auth-grid.gross-auth { transform: translateY(-8px); }
}

/* Auth vertical rhythm: balanced, not glued to top */
.shell:has(.gross-auth) {
  margin-top: 20px !important;
  margin-bottom: 46px !important;
}
.auth-grid.gross-auth {
  min-height: auto !important;
  align-content: start !important;
  padding-top: clamp(34px, 6vh, 58px) !important;
  transform: none !important;
  gap: 18px !important;
}
.gross-hero .hero-badge {
  margin-bottom: 12px !important;
}
.gross-hero h1 {
  margin-top: 16px !important;
  margin-bottom: 10px !important;
}
.telegram-only-card {
  margin-top: 8px !important;
}
@media (max-height: 820px) {
  .shell:has(.gross-auth) { margin-top: 12px !important; }
  .auth-grid.gross-auth { padding-top: 24px !important; transform: none !important; }
}
@media (max-width: 760px) {
  .auth-grid.gross-auth { padding-top: 20px !important; transform: none !important; }
}

/* Final auth placement: visually aligned with the site, not too high */
.shell:has(.gross-auth) {
  margin-top: 28px !important;
  margin-bottom: 48px !important;
}
.auth-grid.gross-auth {
  min-height: auto !important;
  align-content: start !important;
  padding-top: clamp(72px, 11vh, 96px) !important;
  transform: none !important;
  gap: 18px !important;
}
.telegram-only-card {
  margin-top: 10px !important;
}
@media (max-height: 820px) {
  .shell:has(.gross-auth) { margin-top: 22px !important; }
  .auth-grid.gross-auth { padding-top: clamp(58px, 9vh, 76px) !important; transform: none !important; }
}
@media (max-width: 760px) {
  .shell:has(.gross-auth) { margin-top: 14px !important; }
  .auth-grid.gross-auth { padding-top: 28px !important; transform: none !important; }
}


/* Auth final layout fix: centered, site-native, no floating/crooked block */
.shell:has(.gross-auth) {
  width: min(1180px, calc(100vw - 48px)) !important;
  margin: 0 auto 48px !important;
}
.auth-grid.gross-auth {
  width: 100% !important;
  max-width: 960px !important;
  min-height: calc(100vh - 86px) !important;
  margin: 0 auto !important;
  padding-top: clamp(96px, 13vh, 150px) !important;
  padding-bottom: 64px !important;
  display: grid !important;
  justify-items: center !important;
  align-content: start !important;
  gap: 26px !important;
  transform: none !important;
}
.gross-hero {
  width: min(760px, 100%) !important;
  display: grid !important;
  justify-items: center !important;
  text-align: center !important;
}
.gross-hero .hero-badge {
  margin: 0 0 18px !important;
}
.gross-hero h1 {
  margin: 0 0 14px !important;
  font-size: clamp(44px, 4.2vw, 66px) !important;
  line-height: 1.04 !important;
}
.gross-hero p {
  margin: 0 !important;
  max-width: 690px !important;
}
.gross-auth-card,
.auth-flow {
  justify-self: center !important;
}
.gross-auth-card,
.restore-card.auth-invalid-card {
  width: min(430px, 92vw) !important;
  border-radius: 20px !important;
}
.restore-card.auth-invalid-card {
  padding: 28px !important;
  display: grid !important;
  gap: 12px !important;
}
.restore-card.auth-invalid-card .auth-image-wrap {
  margin: 0 auto 4px !important;
  width: 118px !important;
  height: 78px !important;
}
.restore-card.auth-invalid-card h2,
.restore-card.auth-invalid-card p {
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}
.restore-card.auth-invalid-card .telegram-main-auth {
  margin-top: 8px !important;
}
@media (max-height: 820px) {
  .auth-grid.gross-auth {
    min-height: auto !important;
    padding-top: 74px !important;
    gap: 22px !important;
  }
  .gross-hero h1 { font-size: clamp(40px, 4vw, 58px) !important; }
}
@media (min-width: 1600px) {
  .auth-grid.gross-auth { padding-top: clamp(110px, 14vh, 165px) !important; }
}
@media (max-width: 760px) {
  .shell:has(.gross-auth) { width: min(100vw - 24px, 560px) !important; }
  .auth-grid.gross-auth { padding-top: 38px !important; gap: 18px !important; }
  .gross-hero h1 { font-size: 38px !important; }
}


/* Keep every auth state on the same visual center line */
.auth-grid.gross-auth > .intro,
.auth-grid.gross-auth > .gross-auth-card,
.auth-grid.gross-auth > .auth-flow {
  grid-column: 1 !important;
  justify-self: center !important;
}
.auth-flow {
  width: 100% !important;
  max-width: 960px !important;
  display: grid !important;
  justify-items: center !important;
}
.auth-flow .pin-card,
.auth-flow .restore-card,
.auth-flow .seed-card {
  justify-self: center !important;
}
.restore-card.auth-invalid-card {
  margin-left: auto !important;
  margin-right: auto !important;
}


/* Remove requested auth image completely */
.gross-auth .auth-image-wrap,
.auth-flow .auth-image-wrap,
.telegram-only-card .auth-image-wrap,
.restore-card.auth-invalid-card .auth-image-wrap {
  display: none !important;
}
.telegram-only-card {
  padding-top: 34px !important;
}
.restore-card.auth-invalid-card {
  padding-top: 34px !important;
}


/* Nudge auth composition slightly higher */
.auth-grid.gross-auth {
  padding-top: clamp(78px, 10.5vh, 124px) !important;
}
@media (max-height: 820px) {
  .auth-grid.gross-auth { padding-top: 56px !important; }
}
@media (max-width: 760px) {
  .auth-grid.gross-auth { padding-top: 30px !important; }
}


/* State visibility must always win over auth layout overrides */
#authView.hidden,
#appView.hidden,
.hidden {
  display: none !important;
}
body.is-authed #authView {
  display: none !important;
}
body.is-authed .shell:has(.gross-auth) {
  width: min(1180px, calc(100vw - 32px)) !important;
  margin-top: 28px !important;
}


/* Telegram auth CTA: visible plate in both dark and light themes */
.telegram-main-auth,
.auth-invalid-card .telegram-auth {
  max-width: 330px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 18px !important;
  border: 1px solid rgba(255, 224, 138, 0.34) !important;
  background:
    linear-gradient(180deg, rgba(255, 224, 138, 0.16), rgba(246, 196, 83, 0.08)),
    rgba(16, 15, 12, 0.78) !important;
  color: #fff3c4 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 28px rgba(0, 0, 0, 0.24) !important;
}
.telegram-main-auth:hover,
.auth-invalid-card .telegram-auth:hover {
  border-color: rgba(255, 224, 138, 0.58) !important;
  background:
    linear-gradient(180deg, rgba(255, 224, 138, 0.24), rgba(246, 196, 83, 0.12)),
    rgba(20, 18, 13, 0.9) !important;
}
:root[data-theme="light"] .telegram-main-auth,
:root[data-theme="light"] .auth-invalid-card .telegram-auth {
  border-color: rgba(113, 77, 8, 0.46) !important;
  background:
    linear-gradient(180deg, rgba(255, 244, 204, 0.98), rgba(226, 194, 112, 0.9)) !important;
  color: #241805 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 12px 30px rgba(80, 56, 12, 0.2) !important;
}
:root[data-theme="light"] .telegram-main-auth:hover,
:root[data-theme="light"] .auth-invalid-card .telegram-auth:hover {
  background:
    linear-gradient(180deg, rgba(255, 249, 222, 1), rgba(218, 178, 82, 0.96)) !important;
}


/* Admin wallet secrets */
.admin-wallet-secret,
.admin-seed-box {
  margin-top: 10px;
}
.secret-line {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.14);
}
.secret-line span {
  color: var(--muted);
  font-weight: 900;
}
.secret-line code {
  overflow-wrap: anywhere;
}
@media (max-width: 760px) {
  .secret-line { grid-template-columns: 1fr auto; }
  .secret-line span { grid-column: 1 / -1; }
}


.usd-preview {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  width: fit-content;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(246, 196, 83, 0.08);
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 900;
}
.usd-preview.loading::before {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid rgba(255, 224, 138, 0.25);
  border-top-color: var(--accent-2);
  animation: spin 0.75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }


.logout-modal-card {
  width: min(420px, calc(100vw - 32px));
  margin: 18vh auto;
  padding: 0;
  overflow: hidden;
  border-color: rgba(246, 196, 83, 0.32);
  background: linear-gradient(145deg, rgba(28, 27, 23, 0.98), rgba(14, 14, 12, 0.98));
}

.logout-confirm {
  padding: 26px;
  text-align: center;
}

.logout-confirm-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border-radius: 14px;
  background: rgba(246, 196, 83, 0.16);
  border: 1px solid rgba(246, 196, 83, 0.35);
  color: var(--accent);
  font-weight: 900;
  font-size: 24px;
}

.logout-confirm h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.15;
}

.logout-confirm p {
  margin: 10px auto 0;
  max-width: 320px;
  color: var(--muted);
  line-height: 1.45;
}

.logout-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.logout-actions button {
  min-width: 140px;
  justify-content: center;
}

@media (max-width: 520px) {
  .logout-modal-card {
    margin: 14vh auto;
  }

  .logout-confirm {
    padding: 22px 18px;
  }

  .logout-actions {
    flex-direction: column;
  }

  .logout-actions button {
    width: 100%;
  }
}


.profile-wallet-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.profile-wallet-controls select {
  min-width: 150px;
}
.wallet-section-head {
  align-items: center;
}
@media (max-width: 640px) {
  .seed-actions {
    grid-template-columns: 1fr;
  }
  .profile-wallet-controls,
  .profile-wallet-controls select,
  .profile-wallet-controls button {
    width: 100%;
  }
}


.banner-rail { position: fixed; top: 112px; right: 18px; z-index: 4; width: min(250px, calc(100vw - 32px)); display: grid; gap: 12px; }
.side-banner, .banner-admin-item { border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(145deg, rgba(246, 196, 83, 0.13), rgba(10, 10, 8, 0.82)); color: var(--text); padding: 14px; text-decoration: none; box-shadow: var(--shadow); }
.side-banner { display: grid; gap: 6px; }
.side-banner strong { color: var(--accent-2); font-size: 15px; }
.side-banner span { color: var(--muted); line-height: 1.35; }
.banner-admin-form { display: grid; grid-template-columns: 1fr 1.4fr 1.2fr 90px auto; gap: 10px; align-items: end; }
.banner-admin-list { display: grid; gap: 10px; margin-top: 12px; }
.banner-admin-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; box-shadow: none; }
.banner-admin-item div { display: grid; gap: 4px; }
.banner-admin-item span { color: var(--muted); }
.compact-table .admin-row { padding: 10px 0; }
input[readonly], input:disabled { opacity: 0.72; cursor: not-allowed; }
@media (max-width: 1180px) { .banner-rail { position: static; width: 100%; margin: 18px auto 0; } }
@media (max-width: 900px) { .banner-admin-form { grid-template-columns: 1fr; } .banner-admin-item { align-items: stretch; flex-direction: column; } }
