/* AUREA Launchpad — brand spec: ~/workspace/aurea-brand/brand-spec.md */
:root {
  --bg: #0a0f1e;
  --bg-deep: #020616;
  --card: #121626;
  --card-2: #141828;
  --panel: #0f1423;
  --input-bg: #0e1222;
  --border: #39415f;
  --gold: #ffd700;
  --gold-light: #ffeb50;
  --gold-dark: #c8aa00;
  --violet: #8a2be2;
  --text: #ffffff;
  --muted: #A7ACC2;
  --faint: #8B90A5;
  --success: #02b589;
  --danger: #e94d7a;
  --warning: #d9ab52;
  --radius: 16px;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  font-weight: 500;
  line-height: 1.55;
  background-image:
    radial-gradient(900px 480px at 85% -10%, rgba(138, 43, 226, 0.22), transparent 60%),
    radial-gradient(700px 420px at -10% 0%, rgba(255, 215, 0, 0.1), transparent 55%);
  background-attachment: fixed;
}
a {
  color: var(--gold-light);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

/* header */
header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 15, 30, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
header.site .bar {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  flex-wrap: wrap;
  padding-top: 6px;
  padding-bottom: 6px;
}
header.site .logo img {
  height: 40px;
  width: auto;
  display: block;
}
header.site .topnav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
header.site .topnav::-webkit-scrollbar {
  display: none;
}
header.site .topnav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  padding: 7px 11px;
  border-radius: 9999px;
  white-space: nowrap;
}
header.site .topnav a:hover {
  color: var(--text);
  text-decoration: none;
}
header.site .topnav a.active {
  color: var(--gold);
  background: rgba(255, 215, 0, 0.1);
}
header.site .bar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
/* Compact PWA app button in the header (links to app.aureaswap.com). */
header.site .app-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--gold);
  border: 1px solid rgba(255, 215, 0, 0.45);
  background: rgba(255, 215, 0, 0.08);
  font-size: 13.5px;
  font-weight: 800;
  padding: 7px 12px;
  border-radius: 9999px;
  white-space: nowrap;
  text-decoration: none;
}
header.site .app-btn:hover {
  color: var(--gold);
  background: rgba(255, 215, 0, 0.16);
  text-decoration: none;
}
header.site .app-btn svg { flex: none; }
@media (max-width: 640px) {
  header.site .app-btn { padding: 7px 9px; }
  header.site .app-btn .app-btn-label { display: none; }
}
header.site .badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--gold);
  border: 1px solid rgba(255, 215, 0, 0.45);
  padding: 3px 8px;
  border-radius: 9999px;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card-2);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  padding: 9px 16px;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover {
  border-color: var(--gold-dark);
  text-decoration: none;
}
.btn-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: #141828;
  font-weight: 800;
}
.btn-primary:hover {
  background: var(--gold-light);
}
.btn-ghost {
  background: transparent;
}
.lang-select {
  max-width: 180px;
}
.lang-select option {
  background: var(--card, #121626);
  color: var(--text, #ffffff);
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn.connected {
  border-color: var(--success);
  color: var(--success);
}

/* hero */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
  padding: 44px 0 10px;
}
.hero h1 {
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 14px;
  background: linear-gradient(45deg, #ffd700 6.62%, #8a2be2 86.5%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  color: #c9cbd4;
  font-size: 16px;
  margin: 0 0 22px;
  max-width: 56ch;
}
.hero .cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-art {
  position: relative;
}
.hero-art img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 80px rgba(138, 43, 226, 0.25);
  display: block;
}

/* stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 26px 0 6px;
}
.stat {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.stat .k {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.stat .v {
  font-size: 24px;
  font-weight: 800;
  margin-top: 4px;
}

/* sections / cards */
section.block {
  margin: 34px 0;
}
section.block > h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.sortbar {
  margin-left: auto;
  display: flex;
  gap: 8px;
}
.sortbar .btn {
  padding: 6px 12px;
  font-size: 13px;
}
.sortbar .btn.active {
  background: var(--gold);
  color: #141828;
  border-color: var(--gold);
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}
.tcard {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--text);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.tcard:hover {
  transform: translateY(-2px);
  border-color: var(--gold-dark);
  text-decoration: none;
}
.tcard .top {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}
.tcard .thumb {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  flex: none;
  background: var(--panel);
}
.tcard .thumb-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  color: var(--gold);
}
.tcard .name {
  font-weight: 800;
  font-size: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tcard .sym {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.tcard .desc {
  color: #b9bbc4;
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}
.progress {
  height: 10px;
  border-radius: 9999px;
  background: var(--panel);
  border: 1px solid var(--border);
  overflow: hidden;
}
.progress > i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  border-radius: 9999px;
}
.tcard .meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
  flex-wrap: wrap;
}
.tcard .meta b {
  color: var(--text);
}
.pill {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 9999px;
  border: 1px solid var(--border);
  color: var(--muted);
}
.pill.grad {
  color: #04150e;
  background: var(--success);
  border-color: var(--success);
}
.empty,
.errorbox {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  color: var(--muted);
}

/* forms */
.panel {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
form .row {
  margin-bottom: 14px;
}
label.flabel {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #c9cbd4;
  margin-bottom: 6px;
}
input[type="text"],
input[type="number"],
input[type="url"],
input[type="email"],
textarea,
select {
  width: 100%;
  background: #1b2338;
  border: 1px solid #57638c;
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  padding: 10px 12px;
}
textarea {
  min-height: 76px;
  resize: vertical;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(255, 215, 0, 0.5);
  border-color: var(--gold-dark);
}
/* Form readability (2026-12-02): placeholders were browser-default dim
   gray on a near-black field -- explicitly brighten so fields read as
   fields. Same values as the other AUREA sites. */
input::placeholder,
textarea::placeholder {
  color: #9ba3bc;
  opacity: 1;
}
.note {
  font-size: 12.5px;
  color: var(--muted);
}
.feeline {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 6px 0;
  border-top: 1px dashed var(--border);
}
.feeline.total {
  font-weight: 800;
  font-size: 16px;
}
.optsum-head {
  font-size: 12.5px;
  color: var(--muted);
  padding: 10px 0 2px;
  border-top: 1px dashed var(--border);
}
.feeline.optline {
  border-top: none;
  padding: 3px 0;
  font-size: 13.5px;
}
.feeline.optline span:first-child {
  padding-left: 10px;
}
.status {
  margin-top: 12px;
  font-size: 14px;
  min-height: 1.4em;
}
.status.err {
  color: var(--danger);
}
.status.ok {
  color: var(--success);
}

/* detail */
.detail-head {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 22px 0 6px;
  flex-wrap: wrap;
}
.detail-head .thumb {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--panel);
}
.detail-head h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 16px;
  align-items: start;
  margin-top: 16px;
}
.kv {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.kv .cell {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  min-width: 0;
}
.kv .k {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.kv .v {
  font-size: 17px;
  font-weight: 800;
  margin-top: 3px;
  overflow-wrap: anywhere;
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  overflow-wrap: anywhere;
}
canvas.chart {
  width: 100%;
  height: 260px;
  display: block;
}
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.tabs .btn {
  flex: 1;
}
.tabs .btn.active {
  background: var(--gold);
  color: #141828;
  border-color: var(--gold);
}
table.trades {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
table.trades th,
table.trades td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}
table.trades th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.table-scroll {
  overflow-x: auto;
}
.side-buy {
  color: var(--success);
  font-weight: 800;
}
.side-sell {
  color: var(--danger);
  font-weight: 800;
}
.grad-banner {
  border: 1px solid var(--success);
  background: rgba(2, 181, 137, 0.12);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 16px;
}

/* toolbar: tabs + search + sort */
.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.toolbar .tabs {
  margin-bottom: 0;
}
.toolbar .tabs .btn {
  flex: none;
  padding: 8px 14px;
  font-size: 13.5px;
}
.toolbar #search {
  flex: 1 1 200px;
  width: auto;
}
.toolbar select {
  width: auto;
  flex: none;
}
.spot-sub {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0;
}
.crown {
  flex: none;
}

/* spotlight (King of the Hill) */
.spotcard {
  display: flex;
  gap: 16px;
  align-items: center;
  background: linear-gradient(120deg, rgba(255, 215, 0, 0.13), rgba(138, 43, 226, 0.13)), linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--gold-dark);
  border-radius: var(--radius);
  padding: 18px;
  color: var(--text);
}
.spotcard:hover {
  text-decoration: none;
  border-color: var(--gold);
}
.spotcard .thumb {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-dark);
  flex: none;
  background: var(--panel);
}
.spotcard .thumb-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 28px;
  color: var(--gold);
}
.spot-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.spot-main .name {
  font-size: 20px;
  font-weight: 800;
}
.spot-main .sym {
  color: var(--muted);
  font-size: 14px;
}
.spot-main .desc {
  color: #b9bbc4;
  font-size: 13.5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.spot-main .meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--muted);
}
.spot-main .meta b {
  color: var(--text);
}
.usd {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.85em;
}

/* designed empty state */
.empty-cta {
  border: 1px dashed var(--gold-dark);
  border-radius: var(--radius);
  padding: 34px 24px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 215, 0, 0.05), transparent);
}
.empty-cta .empty-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 18px;
}
.empty-cta .steps {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.empty-cta .step {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 7px 14px 7px 8px;
  font-size: 13px;
  color: #c9cbd4;
}
.empty-cta .step b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  color: #141828;
  font-size: 12.5px;
}

/* AI ops band + page */
.aiops-band {
  display: flex;
  gap: 20px;
  align-items: center;
  background: linear-gradient(120deg, rgba(138, 43, 226, 0.14), rgba(255, 215, 0, 0.07)), linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  flex-wrap: wrap;
}
.aiops-main {
  flex: 1 1 420px;
  min-width: 0;
}
.aiops-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.aiops-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}
.aiops-price {
  text-align: right;
}
.aiops-price .v {
  font-size: 22px;
  font-weight: 800;
  color: var(--gold-light);
  white-space: nowrap;
}
.aiops-price .k {
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 4px;
  max-width: 26ch;
}
.pill.soon {
  color: var(--gold-light);
  border-color: var(--gold-dark);
  background: rgba(255, 215, 0, 0.08);
}
.pill.soon.big {
  font-size: 13px;
  padding: 7px 14px;
}
.ops-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}
.ops-grid h3 {
  margin: 0 0 12px;
}
.ops-item {
  margin-bottom: 14px;
}
.ops-item p {
  margin: 4px 0 0;
}

/* socials + chart toggle + image preview */
.socials {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  background: var(--card-2);
  color: var(--text);
  border-radius: 9999px;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 700;
}
.social-btn:hover {
  border-color: var(--gold-dark);
  text-decoration: none;
}
.chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.chart-toggle {
  display: flex;
  gap: 6px;
}
.chart-toggle .btn {
  padding: 5px 12px;
  font-size: 12.5px;
}
.chart-toggle .btn.active {
  background: var(--gold);
  color: #141828;
  border-color: var(--gold);
}
.img-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.img-preview img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--panel);
}

@media (max-width: 860px) {
  .ops-grid {
    grid-template-columns: 1fr;
  }
  .aiops-price {
    text-align: left;
  }
  .spotcard {
    flex-direction: column;
    align-items: flex-start;
  }
}

footer.site {
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding: 22px 0 34px;
  color: var(--muted);
  font-size: 13px;
}
footer.site .frow {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 28px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  header.site .badge {
    display: none;
  }
  header.site .topnav {
    order: 3;
    flex-basis: 100%;
  }
  header.site .logo img {
    height: 34px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-art img {
    animation: floaty 7s ease-in-out infinite;
  }
  @keyframes floaty {
    0%,
    100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-6px);
    }
  }
}

/* ================================================================
   v2 — four.meme-style layout (AUREA gold/navy skin)
   ================================================================ */

/* left icon rail */
.rail {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 54px;
  padding-top: 80px;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: rgba(6, 9, 18, 0.88);
  border-right: 1px solid var(--border);
  z-index: 15;
  backdrop-filter: blur(8px);
}
.rail-item {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  border: 1px solid transparent;
}
.rail-item:hover {
  color: var(--text);
  text-decoration: none;
}
.rail-item.active {
  color: var(--gold);
  border-color: var(--gold-dark);
  background: rgba(255, 215, 0, 0.08);
}
@media (min-width: 1100px) {
  .rail {
    display: flex;
  }
  body {
    padding-left: 54px;
  }
}

/* hero v2: create CTA + search (left) / carousel (right) */
.hero2 {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 28px;
  align-items: stretch;
  padding: 36px 0 8px;
}
.create-cta-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.create-cta-row .chev.flip {
  transform: scaleX(-1);
}
.btn-create {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  background: rgba(255, 215, 0, 0.04);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 15px 40px;
  border-radius: 10px;
  white-space: nowrap;
  box-shadow: 0 0 24px rgba(255, 215, 0, 0.12);
}
.btn-create:hover {
  background: rgba(255, 215, 0, 0.12);
  text-decoration: none;
}
.hero2-sub {
  color: #b9bbc4;
  font-size: 14px;
  line-height: 1.6;
  margin: 18px 0 0;
  max-width: 54ch;
}
.searchbar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 5px 5px 16px;
  margin-top: 20px;
}
.searchbar:focus-within {
  border-color: var(--gold-dark);
}
.searchbar svg {
  flex: none;
}
.searchbar input {
  flex: 1;
  width: auto;
  min-width: 0;
  background: transparent;
  border: none;
  padding: 8px 0;
  font-size: 15px;
}
.searchbar input:focus {
  outline: none;
  border: none;
}
.search-go {
  flex: none;
  background: var(--gold);
  color: #141828;
  border: none;
  font: inherit;
  font-weight: 800;
  font-size: 15px;
  padding: 10px 28px;
  border-radius: 999px;
  cursor: pointer;
}
.search-go:hover {
  background: var(--gold-light);
}
.statsline {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.sstat {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.sstat .k {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sstat .v {
  font-size: 18px;
  font-weight: 800;
}

/* featured carousel */
.carousel {
  position: relative;
  height: 100%;
  min-height: 248px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background:
    radial-gradient(420px 240px at 85% 20%, rgba(138, 43, 226, 0.28), transparent 65%),
    radial-gradient(380px 220px at 10% 90%, rgba(255, 215, 0, 0.12), transparent 60%),
    linear-gradient(180deg, var(--card-2), var(--card));
}
.cslide {
  position: absolute;
  inset: 0;
  padding: 24px;
  display: flex;
  gap: 18px;
  align-items: center;
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}
.cslide.active {
  opacity: 1;
  pointer-events: auto;
}
.cslide:hover {
  text-decoration: none;
}
.cslide .cs-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.cslide .cs-tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #141828;
  background: var(--gold);
  border-radius: 999px;
  padding: 3px 10px;
  text-transform: uppercase;
}
.cslide .cs-sym {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 800;
  line-height: 1.05;
  overflow-wrap: anywhere;
}
.cslide .cs-name {
  color: #c9cbd4;
  font-size: 15px;
  font-weight: 700;
}
.cslide .cs-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--muted);
}
.cslide .cs-meta b {
  color: var(--text);
}
.cslide .cs-thumb {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-dark);
  flex: none;
  background: var(--panel);
  box-shadow: 0 0 44px rgba(255, 215, 0, 0.22);
}
.cslide .cs-thumb.thumb-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  font-weight: 800;
  color: var(--gold);
}
.carousel-dots {
  position: absolute;
  left: 24px;
  bottom: 14px;
  display: flex;
  gap: 7px;
  z-index: 3;
}
.carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.28);
  padding: 0;
  cursor: pointer;
  transition: all 0.25s ease;
}
.carousel-dots button.active {
  width: 22px;
  background: var(--gold);
}

/* category pill tabs */
.tabrow {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.ptab {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
}
.ptab:hover {
  color: var(--text);
  border-color: var(--gold-dark);
}
.ptab.active {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(255, 215, 0, 0.07);
}

/* filter bar: graduated switch + sort chips + view/refresh */
.filterbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.switch-wrap {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}
.switch {
  position: relative;
  display: inline-flex;
}
.switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.switch i {
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--border);
  position: relative;
  transition: background 0.2s ease;
  flex: none;
}
.switch i::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--muted);
  transition: all 0.2s ease;
}
.switch input:checked + i {
  background: rgba(255, 215, 0, 0.25);
  border-color: var(--gold-dark);
}
.switch input:checked + i::after {
  left: 20px;
  background: var(--gold);
}
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--card-2);
  border: 1px solid var(--border);
  color: #c9cbd4;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 13px;
  border-radius: 999px;
  cursor: pointer;
}
.chip:hover {
  border-color: var(--gold-dark);
}
.chip.active {
  color: var(--gold);
  border-color: var(--gold-dark);
  background: rgba(255, 215, 0, 0.07);
}
.filter-right {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}
.viewtoggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 9px;
  overflow: hidden;
}
.vtbtn {
  background: var(--card-2);
  color: var(--muted);
  border: none;
  padding: 8px 11px;
  cursor: pointer;
  display: inline-flex;
}
.vtbtn.active {
  color: var(--gold);
  background: rgba(255, 215, 0, 0.1);
}
.iconbtn {
  background: var(--card-2);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 8px 10px;
  cursor: pointer;
  display: inline-flex;
}
.iconbtn:hover {
  color: var(--gold);
  border-color: var(--gold-dark);
}
.iconbtn.spinning svg {
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* token cards v2 (four.meme density) */
.grid {
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 12px;
}
.grid.listview {
  grid-template-columns: 1fr;
}
.tcard {
  flex-direction: row;
  gap: 14px;
  padding: 14px;
  align-items: stretch;
}
/* Mobile fit (2026-12-01): a grid item's automatic minimum size is
   its min-content (thumb 104 + card-main's widest row ≈ 262 + gaps +
   padding ≈ 408px), which stretched the 1fr track past a 390px
   viewport and clipped the card's right edge. Letting the item
   shrink lets .card-main (already min-width:0) absorb it instead. */
.grid .tcard {
  min-width: 0;
}
.thumbwrap {
  position: relative;
  flex: none;
  align-self: flex-start;
}
.tcard .thumb {
  width: 104px;
  height: 104px;
  border-radius: 12px;
}
.tcard .thumb-fallback {
  font-size: 36px;
}
.corner-badge {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--success);
  color: #04150e;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
}
.card-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.card-line1 {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.tcard .name {
  font-size: 15.5px;
}
.chg {
  margin-left: auto;
  font-weight: 800;
  font-size: 13.5px;
  flex: none;
}
.chg.up {
  color: var(--success);
}
.chg.down {
  color: var(--danger);
}
.badges {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.badges .age {
  margin-left: auto;
  color: var(--faint);
  font-size: 12px;
  font-weight: 600;
}
.pill.curve {
  color: var(--gold-light);
  border-color: var(--gold-dark);
  background: rgba(255, 215, 0, 0.06);
}
.kvrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.kvrow .k {
  color: var(--muted);
  flex: none;
}
.kvrow .v {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.copybtn {
  display: inline-flex;
  color: var(--faint);
  cursor: pointer;
  padding: 2px;
}
.copybtn:hover {
  color: var(--gold);
}
.prog-wrap {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 4px;
}
.progress.thin {
  flex: 1;
  height: 7px;
}
.prog-pct {
  color: var(--gold);
  font-weight: 800;
  font-size: 13px;
  min-width: 56px;
  text-align: right;
}

/* AI Score (list cards + detail panel) */
.aiscore {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.aiscore .k {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex: none;
}
.ai-num {
  font-weight: 800;
  font-size: 14px;
  flex: none;
}
.ai-bar {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.ai-bar i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--muted);
}
.ai-bar.sm {
  height: 5px;
}
.ai-bar i.band-high, .ai-num.band-high, .ai-big.band-high { color: var(--success); }
.ai-bar i.band-high { background: var(--success); }
.ai-bar i.band-mid { background: var(--gold); }
.ai-num.band-mid, .ai-big.band-mid { color: var(--gold); }
.ai-bar i.band-low { background: var(--danger); }
.ai-num.band-low, .ai-big.band-low { color: var(--danger); }
.ai-big {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
  margin: 6px 0 8px;
}
.ai-big .ai-of {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}
.ai-factors {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ai-frow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
}
.ai-frow .k {
  color: var(--muted);
  flex: 0 0 42%;
  min-width: 0;
}
.ai-frow .v {
  font-weight: 700;
  flex: none;
  min-width: 66px;
  text-align: right;
}
.ai-frow.ai-missing {
  opacity: .45;
}
.ai-frow.ai-total {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 6px;
  margin-top: 2px;
}
.ai-frow.ai-total .k {
  color: var(--text);
  font-weight: 700;
}

/* create: form + live preview */
.create-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 18px;
  align-items: start;
}
.dropbox {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px dashed #57638c;
  border-radius: 12px;
  padding: 20px 14px;
  cursor: pointer;
  color: #c9cedd;
  text-align: center;
  font-size: 13.5px;
  font-weight: 600;
}
.dropbox:hover {
  border-color: var(--gold-dark);
  color: #c9cbd4;
}
.dropbox img {
  width: 84px;
  height: 84px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--panel);
}
.file-hidden {
  display: none;
}
.btn-wide {
  width: 100%;
}
.pv-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.pv-card {
  cursor: default;
}
.pv-card:hover {
  transform: none;
}
.create-side .note {
  margin: 10px 0 16px;
}
.steps-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 800;
}
.how-steps {
  margin: 0;
  padding-left: 20px;
  color: #c9cbd4;
  font-size: 14px;
}
.how-steps li {
  margin-bottom: 8px;
}
.how-steps li:last-child {
  margin-bottom: 0;
}

/* detail v2: stat strip, info rows, quick amounts, progress card */
.kv.strip {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 16px;
}
.info-rows {
  margin-top: 4px;
}
.irow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13.5px;
}
.irow:last-child {
  border-bottom: none;
}
.irow .k {
  color: var(--muted);
  flex: none;
}
.irow .v {
  text-align: right;
  min-width: 0;
}
.quickrow {
  display: flex;
  gap: 6px;
  margin: 9px 0 2px;
}
.qbtn {
  flex: 1;
  background: var(--panel);
  border: 1px solid var(--border);
  color: #c9cbd4;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 0;
  border-radius: 8px;
  cursor: pointer;
}
.qbtn:hover {
  border-color: var(--gold-dark);
  color: var(--gold);
}
.prog-card .progress {
  height: 12px;
  margin: 10px 0 6px;
}
.prog-card .big-pct {
  font-size: 22px;
  font-weight: 800;
  color: var(--gold);
}

@media (max-width: 900px) {
  .hero2 {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 26px;
  }
  /* Grid blowout guard (2026-11-30): the single column sized to its
     widest min-content (391px) and pushed the page 17px sideways at a
     390px viewport. Let the column and its children actually shrink. */
  .hero2-left, .hero2-right { min-width: 0; }
  .create-cta-row { flex-wrap: wrap; }
  .carousel {
    min-height: 220px;
  }
  .cslide .cs-thumb {
    width: 110px;
    height: 110px;
  }
  .create-grid {
    grid-template-columns: 1fr;
  }
  .kv.strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .btn-create {
    font-size: 18px;
    padding: 13px 26px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
}

/* creation success panel + affiliate referral block */
.successbox{margin-top:16px;border:1px solid rgba(255,215,0,.45);background:rgba(255,215,0,.05);border-radius:14px;padding:16px}
.successbox .sb-title{font-weight:800;font-size:16px;color:var(--gold);margin-bottom:12px}
.successbox .refblock{margin-top:16px;border-top:1px dashed var(--line);padding-top:14px}
.successbox .refrow{display:flex;gap:8px;margin-top:8px}
.successbox .refrow input{flex:1;min-width:0;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:12.5px}

/* paid options on the create form (AI Services / Website Plan) */
.opt-block{border:1px solid var(--border);border-radius:12px;padding:12px 14px;background:rgba(255,255,255,.02)}
.opt-check{display:flex;gap:10px;align-items:flex-start;cursor:pointer}
.opt-check input[type="checkbox"]{margin-top:1px;width:19px;height:19px;accent-color:var(--gold);flex:none}
.opt-check .opt-title{font-weight:700;font-size:14px;color:var(--text)}
.opt-block .opt-link{margin-top:8px}
.opt-block .opt-link a{color:var(--gold)}
#wp-fields{margin-top:12px}
#wp-fields[hidden]{display:none}
#wp-preview-result[hidden]{display:none}
.successbox .opt-result{margin-top:16px;border-top:1px dashed var(--line);padding-top:14px;text-align:left}
.successbox .opt-result .opt-rtitle{font-weight:800;font-size:14.5px}
.successbox .opt-result .note{margin-top:6px}
.successbox .opt-result .btn{margin-top:10px}
.detail-head .thumb-fallback{display:flex;align-items:center;justify-content:center;font-size:26px;font-weight:800;color:var(--gold);background:var(--panel2)}

/* ---------- site drawer (hamburger menu) — standard shell §4 ---------- */
/* Built and injected by drawer.js on every page. */
.menu-toggle {
  display: inline-flex; flex: none;
  width: 42px; height: 42px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border);
  color: var(--text); cursor: pointer;
  align-items: center; justify-content: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.menu-toggle:hover { border-color: rgba(255, 215, 0, 0.45); background: rgba(255, 215, 0, 0.06); }
.menu-toggle svg { width: 20px; height: 20px; }
.drawer {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: 284px; max-width: 86vw; z-index: 120;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(138, 43, 226, 0.07), rgba(255, 215, 0, 0.03) 55%, transparent), #0d1326;
  border-right: 1px solid var(--border);
  box-shadow: 24px 0 60px rgba(0, 0, 0, 0.5);
  overflow-y: auto; overflow-x: hidden; scrollbar-width: thin;
  transform: translateX(-105%);
  transition: transform 0.24s ease;
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 10px;
}
.drawer-head .brand-logo { height: 32px; width: auto; display: block; }
.drawer-close {
  display: inline-flex; flex: none;
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border);
  color: var(--text); cursor: pointer;
  align-items: center; justify-content: center;
}
.drawer-close:hover { border-color: rgba(255, 215, 0, 0.45); }
.drawer-close svg { width: 18px; height: 18px; }
/* Wallet connect button in the drawer (shell §4 item 2): full-width
   primary button directly below the drawer head. It reuses the site's
   .btn / .btn-primary look and mirrors the header button's state
   (the .connected styling comes from the shared .btn.connected rule). */
.drawer-wallet { padding: 8px 14px 2px; }
.drawer-wallet-btn { width: 100%; min-height: 44px; }
.drawer-nav { padding: 6px 10px; display: flex; flex-direction: column; gap: 2px; }
.drawer-sec {
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted);
  padding: 12px 8px 6px;
}
/* Play & Earn games subgroup (shell spec §4 item 4.5) */
.drawer-subsec {
  font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted);
  padding: 10px 8px 4px 18px;
}
.drawer-link.drawer-game { padding-left: 24px; }
.drawer-link {
  position: relative;
  display: flex; align-items: center; gap: 11px;
  min-height: 38px; padding: 8px 10px; border-radius: 10px;
  color: var(--muted); text-decoration: none;
  font-size: 14px; font-weight: 700; white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.drawer-link svg { width: 18px; height: 18px; flex: none; }
.drawer-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); text-decoration: none; }
.drawer-link.active { background: rgba(255, 215, 0, 0.10); color: var(--gold); }
.drawer-link.active::before {
  content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px;
  width: 3px; border-radius: 3px; background: var(--gold);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.55);
}
/* Tap highlight (user rule, 2026-11-30): a menu item lights up gold while
   pressed — same look as .active. .tap-press is toggled from JS because
   iOS Safari does not reliably apply :active to links. */
.drawer-link:active, .drawer-link.tap-press { background: rgba(255, 215, 0, 0.10); color: var(--gold); }
.drawer-link:active::before, .drawer-link.tap-press::before {
  content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px;
  width: 3px; border-radius: 3px; background: var(--gold);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.55);
}
.drawer-link .drawer-ext { margin-left: auto; font-size: 11px; color: var(--muted); }
.drawer-app {
  display: flex; align-items: center; gap: 12px;
  margin: auto 14px 4px; padding: 13px 14px; border-radius: 12px;
  background: rgba(255, 215, 0, 0.07); color: var(--gold);
  border: 1px solid rgba(255, 215, 0, 0.55);
  box-shadow: 0 0 0 1px rgba(255, 215, 0, 0.12), 0 6px 18px rgba(255, 215, 0, 0.10);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.drawer-app:hover { border-color: var(--gold); background: rgba(255, 215, 0, 0.13); text-decoration: none; }
.drawer-app svg { width: 24px; height: 24px; flex: none; }
.drawer-app-text { display: flex; flex-direction: column; min-width: 0; }
.drawer-app-title { font-weight: 800; font-size: 0.95rem; line-height: 1.3; }
.drawer-app-badge {
  margin-left: auto; flex: none; padding: 2px 8px; border-radius: 9999px;
  background: var(--gold); color: #141828;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.02em;
}
.drawer-lang {
  padding: 10px 18px 2px;
  display: flex; flex-direction: column; gap: 6px;
}
.drawer-lang .drawer-sec { padding-left: 0; }
.drawer-lang-select {
  width: 100%; height: 42px; padding: 0 10px;
  background: var(--card, #121626); color: var(--text, #ffffff);
  border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 10px;
  font: inherit; font-size: 14px; font-weight: 700;
}
.drawer-lang-select:focus-visible { outline: 2px solid #ffd700; outline-offset: 1px; }
.drawer-foot {
  padding: 6px 18px 18px;
  display: flex; flex-direction: column; gap: 8px;
}
.drawer-foot .drawer-sec { padding-left: 0; }
.drawer-foot a { color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 700; }
.drawer-foot a:hover { color: var(--gold); }
.drawer-scrim {
  position: fixed; inset: 0; z-index: 110;
  background: rgba(2, 6, 22, 0.62); backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
}
.drawer-scrim.on { opacity: 1; pointer-events: auto; }

/* ---------- readability pass (2026-11-29): stronger card frames + neon-glow hover ----------
   Appended last so it wins over the earlier card rules without restructuring them.
   Brand-tasteful only: gold frame tint + violet inner glow, no layout changes. */
.tcard {
  border-color: rgba(255,215,0,.24);
  box-shadow: 0 8px 26px rgba(0,0,0,.32), inset 0 0 22px rgba(138,43,226,.045);
}
.tcard:hover {
  border-color: rgba(255,215,0,.55);
  box-shadow: 0 0 14px rgba(255,215,0,.15), 0 0 28px rgba(138,43,226,.13), 0 12px 32px rgba(0,0,0,.42);
}

/* ---------- NEON FRAME STANDARD v1 (2026-11-29): gradient gold->purple frame + outer glow ----------
   Appended last; wins over the readability pass. Fill = the site's own card
   colour, so surfaces never change — only the frame goes neon. See
   ~/workspace/aurea-design/shell-spec.md section 10. */
.tcard, .panel, .steps-card, .prog-card, .pv-card, .spotcard, .opt-block {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--card, #121626), var(--card, #121626)) padding-box,
    linear-gradient(135deg, rgba(255,215,0,.55), rgba(138,43,226,.55) 52%, rgba(255,215,0,.30)) border-box;
  box-shadow: 0 0 16px rgba(138,43,226,.16), 0 0 8px rgba(255,215,0,.08), 0 10px 28px rgba(0,0,0,.36), inset 0 0 24px rgba(138,43,226,.05);
}
@media (hover: hover) {
  .tcard, .panel, .steps-card, .prog-card, .pv-card, .spotcard, .opt-block:hover {
    background:
      linear-gradient(var(--card, #121626), var(--card, #121626)) padding-box,
      linear-gradient(135deg, rgba(255,215,0,.9), rgba(138,43,226,.85) 52%, rgba(255,215,0,.55)) border-box;
    box-shadow: 0 0 22px rgba(255,215,0,.22), 0 0 34px rgba(138,43,226,.28), 0 14px 34px rgba(0,0,0,.44), inset 0 0 24px rgba(138,43,226,.07);
  }
}
.aiops-band {
  border: 1px solid rgba(255,215,0,.45);
  box-shadow: 0 0 18px rgba(138,43,226,.20), 0 0 10px rgba(255,215,0,.10), 0 10px 28px rgba(0,0,0,.36), inset 0 0 24px rgba(138,43,226,.05);
}
@media (hover: hover) {
  .aiops-band:hover {
    border-color: rgba(255,215,0,.75);
    box-shadow: 0 0 24px rgba(255,215,0,.24), 0 0 38px rgba(138,43,226,.30), 0 14px 34px rgba(0,0,0,.44), inset 0 0 24px rgba(138,43,226,.07);
  }
}
.irow, .kvrow, .rail-item {
  border-color: rgba(255,215,0,.30);
  box-shadow: inset 0 0 18px rgba(138,43,226,.04), 0 0 10px rgba(138,43,226,.08);
}
@media (hover: hover) {
  .irow, .kvrow, .rail-item:hover {
    border-color: rgba(255,215,0,.55);
    box-shadow: 0 0 14px rgba(255,215,0,.14), 0 0 22px rgba(138,43,226,.16);
  }
}
/* Neon focus frame for form fields (standard, shell-spec section 10). */
input:not([type=checkbox]):not([type=radio]):focus, select:focus, textarea:focus {
  border-color: rgba(255,215,0,.75);
  box-shadow: 0 0 0 3px rgba(255,215,0,.14), 0 0 14px rgba(138,43,226,.22);
  outline: none;
}
/* Assistant bubble guard: never resurrect over the mobile bottom nav,
   even if a cached old assistant.js is still being served. */
@media (max-width: 820px) { #aurea-assistant .aa-toggle { display: none !important; } }

/* --- CAMPAIGN RIBBON v1 (2026-11-29): free token creation campaign --- */
.campaign-ribbon {
  margin: 0 0 18px; padding: 12px 16px; border-radius: 14px;
  font-size: .95rem; line-height: 1.6; color: var(--text, #EDEFF7);
  border: 1px solid transparent;
  background:
    linear-gradient(var(--card, #121626), var(--card, #121626)) padding-box,
    linear-gradient(135deg, rgba(255,215,0,.65), rgba(138,43,226,.65) 52%, rgba(255,215,0,.4)) border-box;
  box-shadow: 0 0 16px rgba(138,43,226,.22), 0 0 10px rgba(255,215,0,.12);
}
.campaign-ribbon a { color: var(--gold, #FFD700); font-weight: 800; white-space: nowrap; }

/* ——— SNS platform logos (real brand logos, self-hosted in assets/social/) ——— */
.pf-ico { width: 16px; height: 16px; flex: none; border-radius: 3px; vertical-align: -3px; margin-right: 6px; }
.social-btn img { width: 15px; height: 15px; flex: none; }

/* motif-thumbs2 (2026-11-30) */
.motif-ic{width:56px;height:56px;border-radius:14px;object-fit:cover;flex:0 0 auto;border:1px solid rgba(240,185,11,.45);box-shadow:0 0 12px rgba(168,85,247,.35)}
.motif-row{display:flex;gap:14px;align-items:flex-start}
.motif-row>div{flex:1;min-width:0}
@media(max-width:560px){.motif-ic{width:44px;height:44px;border-radius:11px}}

/* --- drawer: Latest News — real AUREA News article cover cards, the
   same card design as Tools / Market: the article's cover image with
   the title overlaid as HTML text (never baked into the image) over
   a dark scrim for readability. A card is never text-only — the
   official emblem is the fallback cover. */
.drawer-sec-link { display: block; text-decoration: none; cursor: pointer; }
.drawer-sec-link:hover { color: var(--gold); }
.drawer-news { padding: 0 2px; }
.sb-news-card {
  position: relative; display: block; border-radius: 12px; overflow: hidden;
  aspect-ratio: 16 / 8.4; margin: 0 0 10px;
  color: var(--text); text-decoration: none; background: #121626;
  border: 1px solid rgba(255, 215, 0, 0.28);
  box-shadow: 0 0 12px rgba(138, 43, 226, 0.18), 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.sb-news-card:last-child { margin-bottom: 2px; }
.sb-news-card:hover {
  text-decoration: none; border-color: rgba(255, 215, 0, 0.55);
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.22), 0 0 26px rgba(138, 43, 226, 0.28), 0 8px 22px rgba(0, 0, 0, 0.4);
}
.sb-news-card:focus-visible { outline: 2px solid rgba(255, 215, 0, 0.55); outline-offset: 1px; }
.sb-news-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.sb-news-card--fallback { background: radial-gradient(120% 120% at 50% 0%, #1B2242 0%, #0D1122 70%); }
.sb-news-card--fallback .sb-news-img { object-fit: contain; padding: 12% 26%; opacity: 0.9; }
.sb-news-shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 8, 18, 0) 30%, rgba(5, 8, 18, 0.66) 62%, rgba(5, 8, 18, 0.93) 100%);
}
.sb-news-overlay { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 11px 9px; }
.sb-news-title {
  display: block; font-size: 13px; font-weight: 700; line-height: 1.45; color: #FFFFFF;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.65);
}
.sb-news-date { display: block; font-size: 11px; font-weight: 600; color: rgba(233, 236, 248, 0.85); margin-top: 2px; }

/* --- Discovery board + share card (2026-12-02): ranked by measured
   on-chain BNB raised only; neon frame per AUREA standard --- */
.discover-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(330px,1fr));gap:12px}
.discover-card{position:relative}
.discover-rank{position:absolute;top:10px;right:12px;z-index:2;font-weight:800;font-size:15px;color:#141828;background:var(--gold);border-radius:999px;padding:2px 10px;box-shadow:0 0 12px rgba(255,215,0,.35)}
@media(max-width:900px){.discover-grid{grid-template-columns:1fr}}

/* ---------- Native select popups on the dark theme (2026-12-02) ----------
   Pages set light text on <select>, but without color-scheme the
   OS-rendered dropdown list paints on white -- white text on white
   (user report on the Portal feedback form). color-scheme: dark makes
   the popup render dark in Chrome/Edge/Firefox; the explicit option
   colors cover browsers that take option colors from CSS. */
:root { color-scheme: dark; }
select option, select optgroup {
  background-color: #121626;
  color: #FFFFFF;
}

/* Mobile stacked trades table (2026-12-03): vertical stack on phones,
   no horizontal scroll. */
.trd-cl { display: none; }
@media (max-width: 700px) {
  .table-scroll { overflow-x: visible; }
  table.trades thead { display: none; }
  table.trades, table.trades tbody, table.trades tr, table.trades td { display: block; width: 100%; }
  table.trades tr { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; }
  table.trades td { border-bottom: none; padding: 3px 0; white-space: normal; }
  table.trades td:first-child { font-size: 14.5px; padding-bottom: 5px; }
  .trd-cl { display: block; font-size: 11px; color: var(--muted); font-weight: 700; letter-spacing: .05em; margin-bottom: 1px; text-transform: uppercase; }
}

/* ==== CJK glyph variants by UI language (2026-12-03) ====
   Han codepoints are shared by Japanese and Chinese; the glyph
   variant comes from whichever font serves the character. The base
   stacks name no CJK font (some named Simplified-Chinese fonts
   first), so Japanese text could render with Chinese glyphs.
   These :lang() stacks pin each language's own fonts. The i18n
   core sets <html lang> at runtime, so the matching stack applies
   as soon as the UI language is applied. */
html:lang(ja), html:lang(ja) body {
  font-family: 'Manrope', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans',
    'Noto Sans JP', 'Noto Sans CJK JP', 'Yu Gothic', YuGothic, 'Meiryo',
    system-ui, -apple-system, 'Segoe UI', sans-serif;
}
html:lang(zh), html:lang(zh) body,
html:lang(zh-cn), html:lang(zh-cn) body,
html:lang(zh-hans), html:lang(zh-hans) body {
  font-family: 'Manrope', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei',
    'Noto Sans SC', 'Noto Sans CJK SC',
    system-ui, -apple-system, 'Segoe UI', sans-serif;
}
html:lang(zh-tw), html:lang(zh-tw) body,
html:lang(zh-hant), html:lang(zh-hant) body,
html:lang(zh-hk), html:lang(zh-hk) body,
html:lang(zh-mo), html:lang(zh-mo) body {
  font-family: 'Manrope', 'PingFang TC', 'Microsoft JhengHei',
    'Noto Sans TC', 'Noto Sans CJK TC',
    system-ui, -apple-system, 'Segoe UI', sans-serif;
}
html:lang(ko), html:lang(ko) body {
  font-family: 'Manrope', 'Apple SD Gothic Neo', 'Noto Sans KR',
    'Noto Sans CJK KR', 'Malgun Gothic',
    system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* AUREA SNS band layout guard (2026-12-03): forces the stacked, full-width
   drawer SNS band even if a stale cached char-icons.js injects the old
   horizontal CSS. Keep in sync with char-icons.js SNS_CSS. */
body .aurea-sns-band{display:flex;flex-direction:column;gap:8px;width:100%;box-sizing:border-box}
body .aurea-sns-band a{flex:none;width:100%;box-sizing:border-box;justify-content:flex-start}
body .aurea-sns-band .sns-label{flex:1 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body .aurea-sns-band .sns-handle{flex:0 0 auto;white-space:nowrap}

/* === Footer lux (2026-12-03): gold hairline + premium link treatment. CSS only. === */
footer.site { position: relative; padding-top: 18px; letter-spacing: .02em; }
footer.site::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,215,0,.55), rgba(138,43,226,.45), transparent); pointer-events: none; }
footer.site a { transition: color .18s ease, border-color .18s ease, background .18s ease; text-underline-offset: 3px; }
footer.site a:hover { color: #FFD700; }
footer.site { line-height: 1.75; }
footer.site .frow { padding: 3px 0; }
footer.site a:hover { text-decoration: underline; }
