:root {
  --thraid-gold: #f8bd06;
  --thraid-blue: #2563eb;
  --thraid-ink: #07080a;
  --thraid-panel: #111114;
  --thraid-panel-2: #18181b;
  --thraid-line: rgba(255,255,255,.12);
  --thraid-muted: #a1a1aa;
  --thraid-radius: 18px;
  --thraid-shadow: 0 28px 80px rgba(0,0,0,.42);
}

html { scroll-behavior: smooth; }
* { min-width: 0; }
body {
  background:
    radial-gradient(circle at 12% 0%, rgba(248,189,6,.06), transparent 28rem),
    radial-gradient(circle at 92% 8%, rgba(37,99,235,.07), transparent 30rem),
    var(--thraid-ink);
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button,
.btn,
[role="button"],
a[class*="bg-"],
button[class*="bg-"] {
  transition: transform .16s ease, border-color .16s ease, background-color .16s ease, box-shadow .16s ease, opacity .16s ease;
}

button:hover,
.btn:hover,
[role="button"]:hover,
a[class*="bg-"]:hover,
button[class*="bg-"]:hover {
  transform: translateY(-1px);
}

button:active,
.btn:active,
[role="button"]:active {
  transform: translateY(0) scale(.99);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(248,189,6,.42);
  outline-offset: 2px;
}

.surface,
.card,
.panel,
.modal,
[class*="card"],
[class*="surface"] {
  box-shadow: none;
  overflow-wrap: anywhere;
}

.surface h1,
.surface h2,
.surface h3,
.card h1,
.card h2,
.card h3,
[class*="card"] h1,
[class*="card"] h2,
[class*="card"] h3 {
  text-wrap: balance;
}

.pill,
.badge,
.chip,
button,
.btn {
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
}

.surface,
.card {
  backdrop-filter: saturate(115%);
}

input,
select,
textarea,
.input {
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

input:focus,
select:focus,
textarea:focus,
.input:focus {
  border-color: rgba(248,189,6,.68) !important;
  box-shadow: 0 0 0 4px rgba(248,189,6,.11);
}

html.light body {
  color: #0f172a;
}

html.light .bg-zinc-950:not(.media-post-card):not(.widget-media-tile):not(.domain-premium-art),
html.light .bg-zinc-900:not(.media-post-card):not(.widget-media-tile):not(.domain-premium-art),
html.light .bg-zinc-800:not(button):not(a):not(.media-post-card):not(.widget-media-tile),
html.light .bg-black:not(button):not(a):not(.media-post-card):not(.widget-media-tile),
html.light [class*="bg-zinc-900"]:not(button):not(a):not(.media-post-card):not(.widget-media-tile),
html.light [class*="bg-zinc-950"]:not(button):not(a):not(.media-post-card):not(.widget-media-tile) {
  background: #fff !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 14px 34px rgba(15,23,42,.06);
}

html.light .border-zinc-800,
html.light .border-zinc-700,
html.light .border-zinc-600 {
  border-color: #cbd5e1 !important;
}

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

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

html.light button.bg-zinc-950,
html.light button.bg-zinc-900,
html.light button.bg-zinc-800,
html.light a.bg-zinc-950,
html.light a.bg-zinc-900,
html.light a.bg-zinc-800 {
  background: #fff !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

html.light button.bg-emerald-600,
html.light button.bg-blue-600,
html.light button.bg-purple-600,
html.light button.bg-rose-600,
html.light a.bg-emerald-600,
html.light a.bg-blue-600,
html.light a.bg-purple-600,
html.light a.bg-rose-600 {
  color: #fff !important;
}

html.light .modal-panel,
html.light [id$="Modal"] > div,
html.light [id$="modal"] > div {
  background: #fff !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

html.light input,
html.light select,
html.light textarea,
html.light .input {
  background: #fff !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

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

.thraid-launch-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(10px);
}

.thraid-launch-modal.open { display: flex; }

.thraid-launch-dialog {
  width: min(560px, 100%);
  background: linear-gradient(180deg, #17171b, #0e0e11);
  border: 1px solid var(--thraid-line);
  border-radius: 22px;
  box-shadow: var(--thraid-shadow);
  overflow: hidden;
  color: #fff;
}

.thraid-launch-dialog header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--thraid-line);
  background:
    radial-gradient(circle at 0% 0%, rgba(248,189,6,.18), transparent 18rem),
    rgba(255,255,255,.025);
}

.thraid-launch-kicker {
  color: var(--thraid-gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.thraid-launch-title {
  margin-top: 4px;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.thraid-launch-close {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--thraid-line);
  background: rgba(255,255,255,.05);
  color: #fff;
  font-size: 20px;
}

.thraid-launch-body {
  padding: 20px 22px;
  color: #d4d4d8;
  line-height: 1.55;
}

.thraid-launch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  padding: 0 22px 22px;
}

.thraid-launch-primary,
.thraid-launch-secondary {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 900;
}

.thraid-launch-primary {
  background: var(--thraid-gold);
  color: #050505;
}

.thraid-launch-secondary {
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1px solid var(--thraid-line);
}

.thraid-toast-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2147482999;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 36px));
}

.thraid-toast {
  border: 1px solid rgba(248,189,6,.35);
  background: linear-gradient(135deg, rgba(24,24,27,.98), rgba(10,10,12,.98));
  color: #fff;
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 18px 50px rgba(0,0,0,.38);
  font-weight: 800;
  animation: thraidToastIn .22s ease both;
}

.thraid-time-stamp,
.thraid-date-stamp {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  width: fit-content;
  max-width: 100%;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.022));
  color: #a1a1aa;
  border-radius: 999px;
  padding: .28rem .58rem;
  font-size: .72rem;
  font-weight: 850;
  line-height: 1.15;
  white-space: nowrap;
}

.thraid-time-stamp i,
.thraid-date-stamp i {
  color: var(--thraid-gold);
  font-size: .68rem;
}

.thraid-time-stamp strong,
.thraid-date-stamp strong {
  color: #e4e4e7;
  font-weight: 950;
}

.thraid-time-stamp:hover,
.thraid-date-stamp:hover {
  border-color: rgba(248,189,6,.45);
  color: #f4f4f5;
}

@keyframes thraidToastIn {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.thraid-share-sheet {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.thraid-share-sheet a,
.thraid-share-sheet button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid var(--thraid-line);
  background: rgba(255,255,255,.06);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

.thraid-launch-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(248,189,6,.35);
  background: rgba(248,189,6,.1);
  color: #fde68a;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 900;
}

.thraid-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: var(--thraid-progress, 0%);
  z-index: 2147482998;
  background: linear-gradient(90deg, var(--thraid-gold), #22c55e, var(--thraid-blue));
  box-shadow: 0 0 18px rgba(248,189,6,.5);
}

.thraid-revenue-fab {
  position: fixed;
  right: 18px;
  bottom: 152px;
  z-index: 8990;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(248,189,6,.38);
  background: linear-gradient(135deg, rgba(248,189,6,.96), rgba(253,230,138,.96));
  color: #050505;
  border-radius: 999px;
  padding: 12px 15px;
  font-weight: 950;
  box-shadow: 0 16px 44px rgba(0,0,0,.34);
}

.thraid-revenue-fab small {
  display: block;
  font-size: 10px;
  line-height: 1;
  opacity: .72;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.thraid-revenue-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.thraid-revenue-card {
  border: 1px solid var(--thraid-line);
  background: rgba(255,255,255,.055);
  border-radius: 18px;
  padding: 15px;
}

.thraid-revenue-card strong {
  display: block;
  color: #fff;
  font-size: 17px;
  line-height: 1.12;
}

.thraid-revenue-card p {
  margin: 8px 0 12px;
  color: #a1a1aa;
  font-size: 13px;
  line-height: 1.38;
}

.thraid-revenue-card button {
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: var(--thraid-gold);
  color: #050505;
  padding: 10px 12px;
  font-weight: 950;
}

.thraid-revenue-card button.pending {
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1px solid var(--thraid-line);
}

html.light body {
  background:
    radial-gradient(circle at 12% 0%, rgba(248,189,6,.10), transparent 28rem),
    radial-gradient(circle at 92% 8%, rgba(37,99,235,.08), transparent 30rem),
    #f5f6f8;
}

html.light .thraid-launch-modal {
  background: rgba(15,23,42,.38);
}

html.light .thraid-launch-dialog {
  background: #fff;
  color: #050505;
  border-color: #d1d5db;
  box-shadow: 0 28px 80px rgba(15,23,42,.18);
}

html.light .thraid-launch-dialog header {
  background:
    radial-gradient(circle at 0% 0%, rgba(248,189,6,.20), transparent 18rem),
    #fff;
  border-bottom-color: #e5e7eb;
}

html.light .thraid-launch-kicker {
  color: #b45309;
}

html.light .thraid-launch-title,
html.light .thraid-revenue-card strong {
  color: #050505;
}

html.light .thraid-launch-body {
  color: #1f2937;
}

html.light .thraid-launch-close,
html.light .thraid-launch-secondary {
  background: #f3f4f6;
  color: #050505;
  border-color: #d1d5db;
}

html.light .thraid-launch-primary,
html.light .thraid-revenue-card button,
html.light .thraid-revenue-fab {
  background: linear-gradient(135deg, #f8bd06, #facc15);
  color: #050505;
}

html.light .thraid-revenue-card {
  background: #fff;
  border-color: #d1d5db;
  box-shadow: 0 14px 34px rgba(15,23,42,.08);
}

html.light .thraid-revenue-card p {
  color: #334155;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

html.light .thraid-launch-chip {
  background: #fff7d6;
  border-color: rgba(180,83,9,.35);
  color: #92400e;
}

html.light .thraid-revenue-card button.pending {
  background: #f3f4f6;
  color: #111827;
  border-color: #d1d5db;
}

html.light .thraid-share-sheet a,
html.light .thraid-share-sheet button {
  background: #f8fafc;
  color: #111827;
  border-color: #d1d5db;
}

html.light .thraid-toast {
  background: #fff;
  color: #050505;
  border-color: rgba(180,83,9,.28);
  box-shadow: 0 18px 50px rgba(15,23,42,.16);
}

html.light .thraid-time-stamp,
html.light .thraid-date-stamp {
  background: #f8fafc;
  border-color: #d1d5db;
  color: #334155;
}

html.light .thraid-time-stamp strong,
html.light .thraid-date-stamp strong {
  color: #050505;
}

html.light .allocation-frame,
html.light .chart-frame,
html.light .chart-panel,
html.light .chart-card,
html.light .analytics-chart,
html.light .quote-chart {
  color: #111827;
}

html.light .allocation-frame {
  background:
    radial-gradient(circle at center, rgba(15,23,42,.035) 0 38%, transparent 39%),
    linear-gradient(180deg, #ffffff, #f8fafc);
  border-color: #cbd5e1;
}

.allocation-frame > .relative {
  width: min(260px, 78vw);
  aspect-ratio: 1;
}

.allocation-frame .allocation-ring {
  width: 100%;
}

.allocation-frame .allocation-center {
  position: absolute;
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;
  left: 50% !important;
  width: 58%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  background: transparent !important;
}

html.light .allocation-ring {
  box-shadow:
    inset 0 0 0 2px rgba(15,23,42,.08),
    0 16px 42px rgba(15,23,42,.13);
}

html.light .allocation-ring::before {
  background: #fff;
  box-shadow:
    0 0 0 1px #cbd5e1,
    inset 0 0 0 10px #f8fafc,
    0 8px 26px rgba(15,23,42,.12);
}

html.light .allocation-center,
html.light .allocation-center * {
  color: #111827 !important;
}

html.light .allocation-center .text-zinc-400,
html.light .allocation-center .text-zinc-500,
html.light .allocation-center [class*="text-zinc-"] {
  color: #475569 !important;
}

html.light .thraid-launch-body *,
html.light .thraid-revenue-card *,
html.light .thraid-share-sheet * {
  color: inherit;
}

html.light .thraid-launch-body p,
html.light .thraid-launch-body li,
html.light .thraid-launch-body small {
  color: #334155;
}

html.light .thraid-revenue-card strong,
html.light .thraid-launch-body strong,
html.light .thraid-launch-body b {
  color: #050505;
}

html.light canvas,
html.light svg {
  color: #111827;
}

html.light .quote-chart {
  background: linear-gradient(180deg, rgba(37,99,235,.09), rgba(248,250,252,.96));
  border-color: #cbd5e1;
}

html.light .score-bar,
html.light .perf-line {
  background: #e5e7eb;
}

html.light .surface,
html.light .card,
html.light .panel,
html.light .room-card,
html.light .choice-card,
html.light .platform-card,
html.light .memory-card,
html.light .event-card,
html.light .chatline-card,
html.light .relic,
html.light .run-row,
html.light .voice-live-strip,
html.light .source-row,
html.light .profession-chip,
html.light .modal-card,
html.light .composer,
html.light .mini-card,
html.light .metric-card,
html.light .appraisal-card,
html.light .feature-card,
html.light .pricing-card,
html.light .stat-card,
html.light .widget-card,
html.light .checkout-card,
html.light .growth-card,
html.light .result-card,
html.light .coupon-group,
html.thraid-light .surface,
html.thraid-light .card,
html.thraid-light .panel,
html.thraid-light .room-card,
html.thraid-light .choice-card,
html.thraid-light .platform-card,
html.thraid-light .memory-card,
html.thraid-light .event-card,
html.thraid-light .chatline-card,
html.thraid-light .relic,
html.thraid-light .run-row,
html.thraid-light .voice-live-strip,
html.thraid-light .source-row,
html.thraid-light .profession-chip,
html.thraid-light .modal-card,
html.thraid-light .composer,
html.thraid-light .mini-card,
html.thraid-light .metric-card,
html.thraid-light .appraisal-card,
html.thraid-light .feature-card,
html.thraid-light .pricing-card,
html.thraid-light .stat-card,
html.thraid-light .widget-card,
html.thraid-light .checkout-card,
html.thraid-light .growth-card,
html.thraid-light .result-card,
html.thraid-light .coupon-group {
  background: #fff !important;
  color: #050505 !important;
  border-color: #cbd5e1 !important;
}

html.light .surface p,
html.light .card p,
html.light .panel p,
html.light .choice-card p,
html.light .platform-card p,
html.light .memory-card p,
html.light .event-card p,
html.light .chatline-card p,
html.light .feature-card p,
html.light .pricing-card p,
html.light .widget-card p,
html.thraid-light .surface p,
html.thraid-light .card p,
html.thraid-light .panel p,
html.thraid-light .choice-card p,
html.thraid-light .platform-card p,
html.thraid-light .memory-card p,
html.thraid-light .event-card p,
html.thraid-light .chatline-card p,
html.thraid-light .feature-card p,
html.thraid-light .pricing-card p,
html.thraid-light .widget-card p {
  color: #334155 !important;
}

html.light .surface strong,
html.light .card strong,
html.light .panel strong,
html.light .choice-card strong,
html.light .platform-card strong,
html.light .memory-card strong,
html.light .event-card strong,
html.light .feature-card strong,
html.light .pricing-card strong,
html.light .widget-card strong,
html.thraid-light .surface strong,
html.thraid-light .card strong,
html.thraid-light .panel strong,
html.thraid-light .choice-card strong,
html.thraid-light .platform-card strong,
html.thraid-light .memory-card strong,
html.thraid-light .event-card strong,
html.thraid-light .feature-card strong,
html.thraid-light .pricing-card strong,
html.thraid-light .widget-card strong {
  color: #050505 !important;
}

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

@media (max-width: 720px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }
  main,
  section,
  article,
  aside,
  header,
  footer,
  nav,
  .panel,
  .card,
  .surface,
  .rail-card,
  .room-card,
  .channel-card,
  .widget-card,
  .pricing-card,
  .feature-card,
  .template-card,
  .wallet-card,
  .stat,
  .pill,
  .btn,
  button,
  a {
    min-width: 0;
    max-width: 100%;
  }
  h1,
  h2,
  h3,
  p,
  strong,
  span,
  label,
  .pill,
  .btn,
  button,
  a {
    overflow-wrap: anywhere;
  }
  img,
  video,
  canvas,
  iframe {
    max-width: 100%;
  }
  input,
  select,
  textarea {
    max-width: 100%;
  }
  .thraid-launch-actions { display: grid; grid-template-columns: 1fr; }
  .thraid-share-sheet { grid-template-columns: 1fr; }
  .thraid-revenue-grid { grid-template-columns: 1fr; }
  .thraid-revenue-fab { right: 12px; bottom: 9.8rem; padding: 10px 12px; }
  .thraid-toast-stack { right: 12px; bottom: 12px; width: calc(100vw - 24px); }
  #kofi-widget-overlay,
  .floatingchat-container-wrap,
  .floating-chat-kofi-popup-iframe,
  .floating-chat-kofi-button {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
