/* AIXBOT Nova — warm fintech layout (v3), replaces cyan terminal look */

body.ax-v3 {
  --mc-navy: #fff8f2;
  --mc-navy-2: #e8ddd4;
  --mc-blue: #ff8a5c;
  --mc-sky: #ffb088;
  --mc-gold: #f5c542;
  --mc-gold-2: #ffe8a8;
  --mc-ink: #f5f0eb;
  --mc-muted: #a89b92;
  --mc-line: rgba(255, 138, 92, 0.18);
  --mc-bg-deep: #0c0610;
  --mc-surface: #16101c;
  --mc-surface-2: #1e1624;
  --mc-accent-grad: linear-gradient(125deg, #ff8a5c 0%, #ff5e7a 48%, #c44dff 100%);
  --mc-profit-grad: linear-gradient(125deg, #f5c542 0%, #ff8a5c 100%);
  --mc-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  --mc-shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 138, 92, 0.12);
}

body.ax-v3 .mc-phone {
  background:
    radial-gradient(ellipse 100% 55% at 80% -5%, rgba(196, 77, 255, 0.22), transparent 50%),
    radial-gradient(ellipse 80% 45% at 10% 15%, rgba(255, 94, 122, 0.18), transparent 45%),
    radial-gradient(ellipse 60% 30% at 50% 100%, rgba(245, 197, 66, 0.08), transparent 50%),
    var(--mc-bg-deep);
}

body.ax-v3 .mc-phone::before {
  display: none;
}

body.ax-v3 a {
  color: var(--mc-blue);
}

/* —— Floating dock —— */
body.ax-v3 .ax-dock {
  bottom: 12px;
  padding: 0 14px;
}

body.ax-v3 .ax-dock__bar {
  max-width: 400px;
  margin: 0 auto;
  padding: 8px 10px calc(10px + var(--mc-safe-b));
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(22, 16, 28, 0.88);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 138, 92, 0.1);
  backdrop-filter: blur(20px);
}

body.ax-v3 .ax-dock__link {
  font-size: 9px;
  color: #7a6f78;
  border-radius: 16px;
  padding: 8px 4px;
  transition: background 0.15s ease, color 0.15s ease;
}

body.ax-v3 .ax-dock__link.is-active {
  color: #fff8f2;
  background: rgba(255, 138, 92, 0.15);
}

body.ax-v3 .ax-dock__link.is-active::after {
  display: none;
}

body.ax-v3 .ax-dock__link--core {
  transform: translateY(-6px);
}

body.ax-v3 .ax-dock__link--core .ax-dock__link svg,
body.ax-v3 .ax-dock__link--core svg {
  filter: drop-shadow(0 4px 12px rgba(255, 138, 92, 0.45));
}

body.ax-v3.has-ax-dock .mc-stage {
  padding-bottom: calc(100px + var(--mc-safe-b));
}

/* —— Headers —— */
body.ax-v3 .ax-subbar,
body.ax-v3 .ax-topbar {
  padding: calc(10px + var(--mc-safe-t)) 18px 16px;
  gap: 12px;
}

body.ax-v3 .ax-subbar::after,
body.ax-v3 .ax-topbar::after {
  display: none;
}

body.ax-v3 .ax-subbar__back,
body.ax-v3 .ax-topbar__action {
  border-radius: 14px;
  background: var(--mc-surface-2);
  border-color: rgba(255, 255, 255, 0.06);
  color: var(--mc-blue);
  box-shadow: none;
}

body.ax-v3 .ax-subbar__mark,
body.ax-v3 .ax-topbar__mark {
  border-radius: 50%;
  border: 2px solid rgba(255, 138, 92, 0.35);
}

body.ax-v3 .ax-subbar__eyebrow,
body.ax-v3 .ax-topbar__eyebrow {
  color: var(--mc-gold);
  letter-spacing: 0.14em;
}

body.ax-v3 .ax-subbar__title,
body.ax-v3 .ax-topbar__title {
  font-size: 22px;
  font-weight: 800;
  color: var(--mc-navy);
}

body.ax-v3 .ax-lead,
body.ax-v3 .ax-sub__lead {
  margin: 4px 18px 16px;
  padding: 14px 16px;
  border-radius: 18px;
  font-size: 13px;
  line-height: 1.55;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 138, 92, 0.25);
  box-shadow: none;
}

/* —— Home (dashboard) —— */
.nv-home {
  padding-bottom: 8px;
}

.nv-hero__top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px 14px;
}

.nv-hero__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 138, 92, 0.4);
}

.nv-hero__brand {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--mc-gold);
  text-transform: uppercase;
}

.nv-hero__greet {
  margin: 2px 0 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--mc-navy);
  line-height: 1.2;
}

.nv-hero__live {
  margin-left: auto;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #0c0610;
  background: var(--mc-profit-grad);
}

.nv-balance {
  margin: 0 18px 18px;
  padding: 22px 20px 18px;
  border-radius: 24px;
  background: var(--mc-accent-grad);
  color: #1a0a12;
  box-shadow: var(--mc-shadow-lg);
  position: relative;
  overflow: hidden;
}

.nv-balance::before {
  content: "";
  position: absolute;
  right: -30px;
  top: -30px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.nv-balance__lbl {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
}

.nv-balance__amt {
  margin: 8px 0 0;
  font-family: var(--mc-mono);
  font-size: clamp(30px, 8vw, 38px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.nv-balance__sub {
  margin: 10px 0 16px;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.85;
}

.nv-balance__actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.nv-balance__actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nv-balance__actions a:first-child {
  background: #1a0a12;
  color: #fff8f2;
}

.nv-balance__actions a:not(:first-child) {
  background: rgba(255, 255, 255, 0.22);
  color: #1a0a12;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.nv-ticker {
  margin: 0 18px 16px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--mc-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  display: flex;
  gap: 32px;
  font-size: 10px;
  font-weight: 600;
  color: var(--mc-muted);
}

.nv-ticker span {
  white-space: nowrap;
  animation: nv-ticker 28s linear infinite;
}

@keyframes nv-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

.nv-section-title {
  margin: 0 18px 10px;
  font-size: 13px;
  font-weight: 800;
  color: var(--mc-navy);
  letter-spacing: -0.01em;
}

.nv-home-tools {
  padding: 0 18px 18px;
}

.nv-tools-scroll {
  display: flex;
  gap: 10px;
  padding: 0 18px 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.nv-tools-scroll::-webkit-scrollbar { display: none; }

.nv-tool {
  flex: 0 0 88px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 8px;
  border-radius: 20px;
  text-decoration: none;
  color: var(--mc-ink);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  line-height: 1.25;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.nv-tool__ico {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 94, 122, 0.25), rgba(196, 77, 255, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.nv-tool__ico svg {
  width: 22px;
  height: 22px;
  stroke: #fff8f2;
}

/* —— Unified quick menu (all main tabs) —— */
.nv-qhub {
  margin: 8px 18px 12px;
  padding: 16px 14px 14px;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(30, 22, 36, 0.95) 0%, rgba(12, 6, 16, 0.98) 100%);
  border: 1px solid rgba(255, 138, 92, 0.2);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.nv-qhub__title {
  margin: 0 4px 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mc-gold);
}

.nv-qgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.nv-qtile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 88px;
  padding: 12px 6px;
  border-radius: 18px;
  text-decoration: none;
  color: var(--mc-ink);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.nv-qtile:active {
  transform: scale(0.97);
  border-color: rgba(255, 138, 92, 0.35);
  background: rgba(255, 138, 92, 0.08);
}

.nv-qtile--wide {
  grid-column: 1 / -1;
  flex-direction: row;
  justify-content: flex-start;
  gap: 14px;
  min-height: 56px;
  padding: 12px 16px;
}

.nv-qtile--wallet {
  background: linear-gradient(145deg, rgba(255, 138, 92, 0.14), rgba(0, 0, 0, 0.35));
  border-color: rgba(255, 138, 92, 0.22);
}

.nv-qtile__ring {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 94, 122, 0.25), rgba(196, 77, 255, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.nv-qtile--wallet .nv-qtile__ring {
  background: linear-gradient(145deg, rgba(245, 197, 66, 0.35), rgba(255, 138, 92, 0.25));
}

.nv-qtile__ring svg {
  width: 22px;
  height: 22px;
  stroke: #fff8f2;
}

.nv-qtile__lbl {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--mc-navy);
  text-align: center;
  line-height: 1.2;
}

.nv-qtile--wide .nv-qtile__lbl {
  text-align: left;
  font-size: 12px;
}

.nv-bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 18px 18px;
}

.nv-bento article {
  padding: 14px;
  border-radius: 18px;
  background: var(--mc-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.nv-bento span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--mc-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nv-bento strong {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  font-weight: 800;
  color: var(--mc-navy);
}

.nv-bento strong a {
  color: inherit;
  text-decoration: none;
}

.nv-feed {
  margin: 0 18px 20px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.nv-feed__head {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 800;
  color: var(--mc-gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nv-feed__viewport {
  --nv-feed-row-h: 52px;
  --nv-feed-visible: 5;
  overflow: hidden;
  height: calc(var(--nv-feed-row-h) * var(--nv-feed-visible));
  mask-image: linear-gradient(180deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

.nv-feed__track {
  display: flex;
  flex-direction: column;
  animation: nv-feed-scroll 28s linear infinite;
  will-change: transform;
}

.nv-feed__viewport:hover .nv-feed__track,
.nv-feed__viewport:focus-within .nv-feed__track {
  animation-play-state: paused;
}

@keyframes nv-feed-scroll {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .nv-feed__track {
    animation: none;
  }
  .nv-feed__viewport {
    height: auto;
    max-height: calc(var(--nv-feed-row-h) * var(--nv-feed-visible));
    mask-image: none;
    -webkit-mask-image: none;
  }
}

.nv-feed__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: var(--nv-feed-row-h, 52px);
  padding: 8px 0;
  box-sizing: border-box;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.nv-feed__viewport .nv-feed__row:first-child {
  border-top: none;
}

.nv-feed__title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--mc-ink);
}

.nv-feed__meta {
  margin: 4px 0 0;
  font-size: 10px;
  color: var(--mc-muted);
}

.nv-feed__amt {
  margin: 0;
  font-family: var(--mc-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--mc-gold);
  flex-shrink: 0;
}

.nv-feed__amt--out { color: #ff7b9a; }

.nv-feed__empty {
  margin: 0;
  font-size: 12px;
  color: var(--mc-muted);
  line-height: 1.5;
}

/* —— Market / shop —— */
.nv-plan-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 18px 24px;
}

.nv-plan {
  display: grid;
  grid-template-columns: 6px 1fr;
  border-radius: 20px;
  overflow: hidden;
  background: var(--mc-surface);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: var(--mc-shadow);
}

.nv-plan.is-owned {
  border-color: rgba(245, 197, 66, 0.35);
}

.nv-plan__stripe {
  background: var(--mc-accent-grad);
}

.nv-plan__inner {
  padding: 16px 16px 14px;
}

.nv-plan__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.nv-plan__name {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--mc-navy);
  line-height: 1.2;
}

.nv-plan__meta {
  margin: 4px 0 0;
  font-size: 11px;
  color: var(--mc-muted);
  font-weight: 600;
}

.nv-plan__price {
  font-family: var(--mc-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--mc-gold);
  white-space: nowrap;
}

.nv-plan__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.nv-plan__stats div {
  padding: 8px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  text-align: center;
}

.nv-plan__stats dt {
  margin: 0;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mc-muted);
}

.nv-plan__stats dd {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 800;
  color: var(--mc-ink);
  font-family: var(--mc-mono);
}

.nv-plan__btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: none;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  background: var(--mc-accent-grad);
  color: #1a0a12;
}

.nv-plan__tag {
  display: block;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--mc-gold);
  padding: 12px;
}

/* Sub-pages: wallet, forms */
body.ax-v3 .icp-btn,
body.ax-v3 .mc-btn,
body.ax-v3 .rv__submit,
body.ax-v3 .wd__submit {
  border-radius: 16px;
  background: var(--mc-accent-grad);
  color: #1a0a12;
  box-shadow: 0 10px 28px rgba(255, 94, 122, 0.35);
}

body.ax-v3 .wd__bal-card,
body.ax-v3 .mc-wallet-card {
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255, 138, 92, 0.12), var(--mc-surface));
  border-color: rgba(255, 138, 92, 0.2);
}

body.ax-v3 .mc-stat3 article {
  border-radius: 16px;
  background: var(--mc-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

body.ax-v3 .icp-chip.is-on {
  background: rgba(255, 138, 92, 0.18);
  border-color: rgba(255, 138, 92, 0.45);
  color: var(--mc-blue);
}

body.ax-v3 .ax-invite-ticket,
body.ax-v3 .ax-net-pyramid,
body.ax-v3 .ax-port-stats {
  border-radius: 20px;
  border-color: rgba(255, 255, 255, 0.07);
}

body.ax-v3 .ax-invite-ticket__code {
  color: var(--mc-gold);
  font-family: var(--mc-mono);
}

body.ax-v3 .ax-net-node__ring {
  border-width: 2px;
  box-shadow: 0 0 24px rgba(255, 138, 92, 0.15);
}

/* Kill legacy white cards from pages.css on v3 */
body.ax-v3 .mc-stage,
body.ax-v3 .ax-page,
body.ax-v3 .mc-sub-page,
body.ax-v3 .mc-tab-page {
  background: transparent !important;
}

body.ax-v3 .mc-home,
body.ax-v3 .mc-mosaic2 article,
body.ax-v3 .mc-team__nums div,
body.ax-v3 .mc-team details,
body.ax-v3 .mc-mission-lane,
body.ax-v3 .mc-lw-card,
body.ax-v3 .mc-checkin,
body.ax-v3 .ax-checkin,
body.ax-v3 .icp-amount-wrap__field,
body.ax-v3 .icp-channel,
body.ax-v3 .icp-chip,
body.ax-v3 .mc-filter-lane button,
body.ax-v3 .nv-filter-lane__link,
body.ax-v3 .mc-msg-item,
body.ax-v3 .mc-hist-row,
body.ax-v3 .mc-record-row,
body.ax-v3 article[class*="mc-"],
body.ax-v3 section[class*="mc-"] {
  background: var(--mc-surface) !important;
  color: var(--mc-ink) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
}

body.ax-v3 .mc-mosaic2 article:nth-child(1) {
  background: linear-gradient(145deg, rgba(255, 138, 92, 0.2), var(--mc-surface)) !important;
  color: var(--mc-navy) !important;
}

body.ax-v3 .ax-cmd-wallet,
body.ax-v3 .nv-profile-bal {
  background: linear-gradient(125deg, rgba(255, 138, 92, 0.15), rgba(196, 77, 255, 0.1)) !important;
  border: 1px solid rgba(255, 138, 92, 0.25) !important;
}

body.ax-v3 .ax-cmd-hero {
  background: linear-gradient(165deg, #2a1428 0%, #16101c 55%, #0c0610 100%) !important;
  border-color: rgba(255, 138, 92, 0.25) !important;
}

body.ax-v3 .ax-cmd-tile {
  background: var(--mc-surface) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
}

body.ax-v3 input,
body.ax-v3 select,
body.ax-v3 textarea {
  background: #120a14 !important;
  color: var(--mc-ink) !important;
  border-color: rgba(255, 138, 92, 0.2) !important;
}

body.ax-v3 .nv-bento article,
body.ax-v3 .nv-feed {
  background: rgba(0, 0, 0, 0.25) !important;
}
