﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@600;700&display=swap');

:root {
  --thraid-ink: #0f172a;
  --thraid-muted: #64748b;
  --thraid-line: #d7dee8;
  --thraid-blue: #2563eb;
  --thraid-gold: #f8bd06;
  --thraid-card: #ffffff;
  --thraid-soft: #f8fafc;
}

html {
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

h1,
h2,
h3,
h4,
.logo-font {
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  letter-spacing: 0;
}

.logo-font[href] {
  color: inherit;
  text-decoration: none;
}

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

button,
[role="button"],
.pill,
.nav-link,
.nav-child {
  touch-action: manipulation;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible {
  outline: 3px solid rgba(59,130,246,.55);
  outline-offset: 2px;
}

button,
.btn,
.pill,
.strip-btn,
.buyer-action,
.rail-search-submit {
  min-height: 2.55rem;
}

button,
.btn,
.strip-btn,
.buyer-action {
  overflow-wrap: anywhere;
}

input,
select,
textarea {
  min-width: 0;
}

img,
video,
iframe {
  max-width: 100%;
}

.card,
.rail-card,
.glass,
.market-card,
.domain-card,
.hub-card,
.trend-card,
.follow-card,
.escrow-step,
.seller-tool-card,
.appraisal-trust-card,
.factor-card {
  overflow-wrap: anywhere;
}

.rail-card h2,
.rail-card h3,
.glass h2,
.glass h3,
.card h2,
.card h3,
.market-card h2,
.market-card h3,
.domain-card h2,
.domain-card h3 {
  line-height: 1.12;
}

.rail-card p,
.glass p,
.card p,
.market-card p,
.domain-card p {
  line-height: 1.55;
}

.thraid-action-row,
.action-row,
.button-row,
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem;
}

.thraid-action-row > *,
.action-row > *,
.button-row > *,
.modal-actions > * {
  flex: 0 0 auto;
}

.soft-loading,
[data-loading],
.loading-copy {
  color: #94a3b8;
  font-weight: 700;
}

.thraid-global-mobile-nav {
  display: none;
}

@media (max-width: 640px) {
  h1 {
    font-size: clamp(2rem, 11vw, 3.1rem);
    line-height: .98;
  }

  h2 {
    font-size: clamp(1.35rem, 7vw, 2.05rem);
  }

  .rail-card,
  .glass,
  .market-card,
  .domain-card,
  .card {
    border-radius: 1.15rem !important;
  }

  button,
  .btn,
  .pill,
  .strip-btn,
  .buyer-action {
    white-space: normal;
  }

  .grid {
    min-width: 0;
  }

  body.has-thraid-global-mobile-nav {
    padding-bottom: 5.25rem !important;
  }

  .thraid-global-mobile-nav {
    position: fixed;
    left: .65rem;
    right: .65rem;
    bottom: .65rem;
    z-index: 9990;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .2rem;
    padding: .42rem;
    border: 1px solid rgba(113,113,122,.48);
    border-radius: 1rem;
    background: rgba(9,9,11,.94);
    color: #e5e7eb;
    box-shadow: 0 18px 55px rgba(0,0,0,.38);
    backdrop-filter: blur(18px);
  }

  .thraid-global-mobile-nav a {
    min-width: 0;
    min-height: 3.55rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .28rem;
    border-radius: .75rem;
    color: inherit;
    text-decoration: none;
    font-size: .67rem;
    font-weight: 850;
  }

  .thraid-global-mobile-nav a:hover,
  .thraid-global-mobile-nav a:focus-visible,
  .thraid-global-mobile-nav a[aria-current="page"] {
    background: #18181b;
    color: #ffffff;
  }

  .thraid-global-mobile-nav a[aria-current="page"] {
    box-shadow: inset 0 -2px 0 #3b82f6;
  }

  .thraid-global-mobile-nav i {
    font-size: 1.05rem;
  }
}

html.light,
html.light body {
  color-scheme: light;
}

html.light body {
  background: #f3f4f6 !important;
  color: var(--thraid-ink) !important;
}

html.light .bg-black:not(button):not(a):not(label),
html.light .bg-zinc-950:not(button):not(a):not(label),
html.light .bg-zinc-900:not(button):not(a):not(label),
html.light .bg-zinc-800:not(button):not(a):not(label),
html.light .bg-neutral-950:not(button):not(a):not(label),
html.light .bg-neutral-900:not(button):not(a):not(label),
html.light .bg-slate-950:not(button):not(a):not(label),
html.light .bg-slate-900:not(button):not(a):not(label),
html.light .glass,
html.light .rail-card,
html.light .market-card,
html.light .domain-card,
html.light .hub-card,
html.light .trend-card,
html.light .follow-card,
html.light .seller-tool-card,
html.light .appraisal-trust-card,
html.light .factor-card {
  background: var(--thraid-card) !important;
  color: var(--thraid-ink) !important;
  border-color: var(--thraid-line) !important;
}

html.light .bg-zinc-800\/50,
html.light .bg-zinc-900\/50 {
  background: rgba(255,255,255,.92) !important;
  color: var(--thraid-ink) !important;
}

html.light .text-zinc-500,
html.light .text-zinc-400,
html.light .text-neutral-500,
html.light .text-neutral-400,
html.light .text-slate-500,
html.light .text-slate-400 {
  color: var(--thraid-muted) !important;
}

/* Shared utility rail: keep persistent tools visible without collisions. */
.thraid-command-fab {
  right: 1rem !important;
  bottom: 1rem !important;
}

.thraid-radio {
  right: 1rem !important;
  bottom: 5.25rem !important;
}

.thraid-system-bell {
  right: 1rem !important;
  bottom: 9.5rem !important;
}

.thraid-revenue-fab {
  right: 1rem !important;
  bottom: 13.75rem !important;
}

.market-concierge-toggle {
  right: 1rem !important;
  bottom: 18rem !important;
}

.market-concierge-panel {
  right: 1rem !important;
  bottom: 22rem !important;
}

#kofi-widget-overlay,
.floatingchat-container-wrap,
.floating-chat-kofi-button,
.thraid-kofi-support {
  right: 1rem !important;
  bottom: 22rem !important;
}

.thraid-kofi-support {
  position: fixed;
  z-index: 9998;
  min-height: 3.25rem;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .45rem 1rem .45rem .5rem;
  border: 1px solid rgba(252, 191, 71, .48);
  border-radius: 999px;
  background: #fcbf47;
  color: #1f2937;
  box-shadow: 0 14px 38px rgba(0, 0, 0, .28);
  font: 800 .96rem/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, border-color .16s ease;
}

.thraid-kofi-support:hover {
  transform: translateY(-2px);
  background: #ffd166;
  box-shadow: 0 18px 46px rgba(0, 0, 0, .34);
}

.thraid-kofi-support:focus-visible {
  outline: 3px solid rgba(59, 130, 246, .45);
  outline-offset: 3px;
}

.thraid-kofi-support-icon {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #ffffff;
  color: #ef4444;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .12);
}

html.light .thraid-kofi-support,
[data-theme="light"] .thraid-kofi-support {
  border-color: #d7dee9;
  background: #ffffff;
  color: #172033;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .14);
}

html.light .thraid-kofi-support:hover,
[data-theme="light"] .thraid-kofi-support:hover {
  border-color: #f0b429;
  background: #fff9e8;
  box-shadow: 0 16px 38px rgba(15, 23, 42, .18);
}

@media (max-width: 640px) {
  .thraid-command-fab {
    right: .65rem !important;
    bottom: calc(5.45rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  .thraid-radio {
    right: 4.45rem !important;
    bottom: calc(5.45rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  .thraid-radio.open {
    right: .5rem !important;
  }

  .thraid-system-bell {
    right: 8.25rem !important;
    bottom: calc(5.45rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  .thraid-system-bell.open {
    right: .5rem !important;
  }

  .thraid-system-bell .thraid-bell-panel {
    position: fixed !important;
    left: .5rem !important;
    right: .5rem !important;
    bottom: calc(9.45rem + env(safe-area-inset-bottom, 0px)) !important;
    width: auto !important;
    max-width: none !important;
    max-height: min(62dvh, calc(100dvh - 11rem)) !important;
  }

  .thraid-revenue-fab {
    left: .65rem !important;
    right: auto !important;
    bottom: calc(5.45rem + env(safe-area-inset-bottom, 0px)) !important;
    min-height: 3.35rem;
    padding: .65rem .8rem !important;
  }

  .market-concierge-toggle {
    right: .65rem !important;
    bottom: calc(9.45rem + env(safe-area-inset-bottom, 0px)) !important;
    padding: .68rem .8rem !important;
  }

  .market-concierge-panel {
    right: .5rem !important;
    bottom: calc(13.3rem + env(safe-area-inset-bottom, 0px)) !important;
    width: calc(100vw - 1rem) !important;
    max-height: 56dvh;
    overflow-y: auto;
  }
}

html.light input,
html.light select,
html.light textarea {
  background: #ffffff !important;
  color: var(--thraid-ink) !important;
  border-color: #cbd5e1 !important;
}

html.light input::placeholder,
html.light textarea::placeholder {
  color: #64748b !important;
}

html.light .border-zinc-800,
html.light .border-zinc-700,
html.light .border-neutral-800,
html.light .border-slate-800 {
  border-color: var(--thraid-line) !important;
}

html.light .hover\:bg-zinc-900:hover,
html.light .hover\:bg-zinc-800:hover,
html.light .hover\:bg-neutral-900:hover {
  background: #eef2ff !important;
  color: #111827 !important;
}

html.light .native-media-frame,
html.light .composer-preview-body,
html.light .photo-tile,
html.light video,
html.light iframe {
  background: #0f172a !important;
}

html.light .thraid-global-mobile-nav {
  background: rgba(255,255,255,.96) !important;
  color: #334155 !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 16px 45px rgba(15,23,42,.16) !important;
}

html.light .thraid-global-mobile-nav a:hover,
html.light .thraid-global-mobile-nav a:focus-visible,
html.light .thraid-global-mobile-nav a[aria-current="page"] {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
}

/* Launch declutter sweep: tighter spacing, cleaner public surfaces, better fitting text. */
.thraid-polished body {
  text-rendering: optimizeLegibility;
}

.thraid-polished main,
.thraid-polished .main,
.thraid-polished .shell,
.thraid-polished .page-shell,
.thraid-polished .content-shell,
.thraid-polished .app-shell {
  gap: clamp(.75rem, 1.15vw, 1.25rem) !important;
}

.thraid-polished section,
.thraid-polished .section,
.thraid-polished .panel,
.thraid-polished .card,
.thraid-polished .module,
.thraid-polished .widget,
.thraid-polished .room-card,
.thraid-polished .listing-card,
.thraid-polished .market-card,
.thraid-polished .profile-card,
.thraid-polished .feed-card,
.thraid-polished .thraid-post {
  border-radius: 18px !important;
}

.thraid-polished .panel,
.thraid-polished .card,
.thraid-polished .module,
.thraid-polished .widget,
.thraid-polished .room-card,
.thraid-polished .listing-card,
.thraid-polished .market-card,
.thraid-polished .profile-card {
  padding: clamp(1rem, 1.35vw, 1.45rem) !important;
}

.thraid-polished h1,
.thraid-polished .hero-title {
  line-height: .96 !important;
  letter-spacing: 0 !important;
  max-width: 13ch;
}

.thraid-polished h2,
.thraid-polished h3,
.thraid-polished .card-title,
.thraid-polished .section-title {
  line-height: 1.08 !important;
  letter-spacing: 0 !important;
}

.thraid-polished p,
.thraid-polished li,
.thraid-polished .muted,
.thraid-polished .subcopy,
.thraid-polished .description {
  line-height: 1.45 !important;
}

.thraid-polished button,
.thraid-polished .button,
.thraid-polished .btn,
.thraid-polished a.button,
.thraid-polished [role="button"] {
  white-space: normal !important;
  overflow-wrap: anywhere;
  line-height: 1.12 !important;
  min-width: 0;
}

.thraid-polished .grid,
.thraid-polished .cards,
.thraid-polished .listing-grid,
.thraid-polished .market-grid,
.thraid-polished .room-grid {
  gap: clamp(.7rem, 1vw, 1.1rem) !important;
}

.thraid-public-context .owner-only,
.thraid-public-context [data-owner-only],
.thraid-public-context .debug-panel,
.thraid-public-context .developer-note,
.thraid-public-context .internal-note,
.thraid-public-context .setup-only,
.thraid-public-context .setup-panel,
.thraid-public-context .owner-safety-valve,
.thraid-public-context .admin-instruction,
.thraid-public-context .manual-admin-note {
  display: none !important;
}

.thraid-polished .instruction-panel,
.thraid-polished .explainer,
.thraid-polished .help-card {
  font-size: .94rem !important;
}

.thraid-polished .hero,
.thraid-polished .hero-panel,
.thraid-polished .masthead,
.thraid-polished .page-hero {
  min-height: auto !important;
}

.thraid-polished .hero + *,
.thraid-polished .page-hero + *,
.thraid-polished .masthead + *,
.thraid-polished .composer + *,
.thraid-polished .ad-slot + *,
.thraid-polished .live-desk + *,
.thraid-polished .feed-toolbar + * {
  margin-top: clamp(.65rem, 1vw, 1rem) !important;
}

.thraid-polished .right-rail,
.thraid-polished aside,
.thraid-polished .sidebar {
  gap: .9rem !important;
}

.thraid-polished .daily-thraid,
.thraid-polished .welcome-path,
.thraid-polished .creator-support,
.thraid-polished .thraid-widget-card {
  max-height: 34rem;
  overflow: auto;
}

.thraid-polished .daily-thraid::-webkit-scrollbar,
.thraid-polished .welcome-path::-webkit-scrollbar,
.thraid-polished .creator-support::-webkit-scrollbar,
.thraid-polished .thraid-widget-card::-webkit-scrollbar {
  width: 6px;
}

.thraid-polished .daily-thraid::-webkit-scrollbar-thumb,
.thraid-polished .welcome-path::-webkit-scrollbar-thumb,
.thraid-polished .creator-support::-webkit-scrollbar-thumb,
.thraid-polished .thraid-widget-card::-webkit-scrollbar-thumb {
  background: rgba(100,116,139,.42);
  border-radius: 999px;
}

.thraid-polished .coupon-list,
.thraid-polished .pending-coupons,
.thraid-polished .activity-list,
.thraid-polished .transcript-list,
.thraid-polished .message-list,
.thraid-polished .room-list {
  max-height: min(62vh, 44rem);
  overflow: auto;
  padding-right: .25rem;
}

.thraid-polished .stat-card,
.thraid-polished .metric-card,
.thraid-polished .profile-stat,
.thraid-polished .token-card {
  min-height: 7.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.thraid-polished .stat-card strong,
.thraid-polished .metric-card strong,
.thraid-polished .profile-stat strong,
.thraid-polished .token-card strong,
.thraid-polished .big-number {
  font-size: clamp(1.85rem, 4vw, 3rem) !important;
  line-height: .95 !important;
  overflow-wrap: anywhere;
}

.thraid-polished .tiny-label,
.thraid-polished .eyebrow,
.thraid-polished .kicker,
.thraid-polished .badge,
.thraid-polished .pill {
  letter-spacing: .08em !important;
}

html.light.thraid-polished .panel,
html.light.thraid-polished .card,
html.light.thraid-polished .module,
html.light.thraid-polished .widget,
html.light.thraid-polished .room-card,
html.light.thraid-polished .listing-card,
html.light.thraid-polished .market-card,
html.light.thraid-polished .profile-card,
html.light.thraid-polished .feed-card,
html.light.thraid-polished .thraid-post {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 18px 42px rgba(15,23,42,.06) !important;
}

html.light.thraid-polished .dark-card,
html.light.thraid-polished .black-card,
html.light.thraid-polished .feature-card,
html.light.thraid-polished .mission-card,
html.light.thraid-polished .prompt-card,
html.light.thraid-polished .choice-card {
  background: #f8fafc !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

html.light.thraid-polished .muted,
html.light.thraid-polished .subcopy,
html.light.thraid-polished .description,
html.light.thraid-polished small {
  color: #475569 !important;
}

html.light.thraid-polished .text-white,
html.light.thraid-polished .text-zinc-100,
html.light.thraid-polished .text-zinc-200,
html.light.thraid-polished .text-slate-100,
html.light.thraid-polished .text-slate-200 {
  color: #0f172a !important;
}

html.light.thraid-polished .text-zinc-400,
html.light.thraid-polished .text-zinc-500,
html.light.thraid-polished .text-slate-400,
html.light.thraid-polished .text-slate-500 {
  color: #475569 !important;
}

html.light.thraid-polished .bg-black,
html.light.thraid-polished .bg-zinc-950,
html.light.thraid-polished .bg-zinc-900,
html.light.thraid-polished .bg-neutral-950,
html.light.thraid-polished .bg-neutral-900,
html.light.thraid-polished .bg-slate-950,
html.light.thraid-polished .bg-slate-900 {
  background: #ffffff !important;
  color: #0f172a !important;
}

html.light.thraid-polished .gold,
html.light.thraid-polished .amber,
html.light.thraid-polished .text-yellow-200,
html.light.thraid-polished .text-yellow-300,
html.light.thraid-polished .text-amber-200,
html.light.thraid-polished .text-amber-300 {
  color: #92400e !important;
}

html.light.thraid-polished .thraid-post [class*="media"],
html.light.thraid-polished .native-media-card,
html.light.thraid-polished .media-card {
  color: #0f172a !important;
}

html.light.thraid-polished .thraid-post .action,
html.light.thraid-polished .thraid-post button,
html.light.thraid-polished .feed-actions button {
  color: #0f172a !important;
}

.thraid-polished .growth-fab,
.thraid-polished .thraid-growth-fab,
.thraid-polished .market-growth-fab {
  max-width: min(14rem, calc(100vw - 2rem)) !important;
  z-index: 45 !important;
}

@media (max-width: 1180px) {
  .thraid-polished .right-rail,
  .thraid-polished aside.right,
  .thraid-polished .rail-right {
    max-width: 100% !important;
  }

  .thraid-polished h1,
  .thraid-polished .hero-title {
    font-size: clamp(2.25rem, 7vw, 4rem) !important;
  }
}

@media (max-width: 760px) {
  .thraid-polished .panel,
  .thraid-polished .card,
  .thraid-polished .module,
  .thraid-polished .widget,
  .thraid-polished .room-card,
  .thraid-polished .listing-card,
  .thraid-polished .market-card,
  .thraid-polished .profile-card {
    padding: .95rem !important;
    border-radius: 16px !important;
  }

  .thraid-polished .stat-card,
  .thraid-polished .metric-card,
  .thraid-polished .profile-stat,
  .thraid-polished .token-card {
    min-height: 6.25rem;
  }

  .thraid-polished button,
  .thraid-polished .button,
  .thraid-polished .btn {
    font-size: .94rem !important;
  }

  .thraid-polished .daily-thraid,
  .thraid-polished .welcome-path,
  .thraid-polished .creator-support,
  .thraid-polished .thraid-widget-card {
    max-height: 22rem;
  }
}

/* High-traffic page trims. */
.thraid-polished #feed {
  display: grid !important;
  gap: 1rem !important;
}

.thraid-polished #feed > * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.thraid-polished .feed-action-strip,
.thraid-polished .feed-scroll-control {
  padding: .65rem .8rem !important;
  border-radius: 16px !important;
}

.thraid-polished .feed-action-controls {
  gap: .5rem !important;
}

.thraid-polished .strip-btn,
.thraid-polished .feed-action-controls button {
  min-height: 2.7rem !important;
  padding: .55rem .8rem !important;
  font-size: .88rem !important;
}

.thraid-polished #domain-listings {
  margin-top: .5rem !important;
}

.thraid-polished .domain-card,
.thraid-polished #domain-listings > * {
  min-height: auto !important;
}

.thraid-polished .domain-premium-art img {
  max-height: 7rem !important;
}

.thraid-polished .marketplace-page .grid.mb-10,
.thraid-polished .marketplace-page .mb-10 {
  margin-bottom: 1.4rem !important;
}

.thraid-polished .coupon {
  max-width: 58rem;
  margin-inline: auto;
}

.thraid-polished .coupon-strip {
  padding: .85rem 1rem !important;
}

.thraid-polished .coupon-stack {
  max-height: min(54vh, 34rem) !important;
}

.thraid-polished #couponList {
  display: grid;
  gap: .85rem;
}

.thraid-polished .profile-hero,
.thraid-polished .profile-cover,
.thraid-polished .profile-header {
  min-height: clamp(14rem, 28vw, 22rem) !important;
}

.thraid-polished .profile-stats,
.thraid-polished .profile-intelligence,
.thraid-polished .profile-metrics {
  gap: .75rem !important;
}

.thraid-polished .game-card,
.thraid-polished .stream-card,
.thraid-polished .arcade-card {
  overflow: hidden;
}

.thraid-polished .game-card h2,
.thraid-polished .game-card h3,
.thraid-polished .stream-card h2,
.thraid-polished .stream-card h3,
.thraid-polished .arcade-card h2,
.thraid-polished .arcade-card h3 {
  font-size: clamp(1.15rem, 2.1vw, 1.65rem) !important;
}

.thraid-polished .game-card button,
.thraid-polished .stream-card button,
.thraid-polished .arcade-card button {
  font-size: .9rem !important;
  padding-inline: .75rem !important;
}

.thraid-polished .youspar-card,
.thraid-polished .debate-card,
.thraid-polished .transcript-card {
  padding: 1rem !important;
}

.thraid-polished .debate-image,
.thraid-polished .youspar-art,
.thraid-polished .institution-art {
  max-height: 14rem;
  object-fit: cover;
}

@media (max-width: 900px) {
  .thraid-polished .feed-action-controls {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .thraid-polished .strip-btn,
  .thraid-polished .feed-action-controls button {
    width: 100%;
  }

  .thraid-polished .feed-scroll-note {
    text-align: left !important;
  }
}

@media (max-width: 640px) {
  .thraid-polished .feed-action-controls {
    grid-template-columns: 1fr 1fr;
  }

  .thraid-polished .strip-btn,
  .thraid-polished .feed-action-controls button {
    font-size: .82rem !important;
    min-height: 2.5rem !important;
  }

  .thraid-polished h1,
  .thraid-polished .hero-title {
    max-width: 100%;
  }
}
