/* =========================================================
   JUSTICE MCNEAL LLC — DARK GOLD THEME OVERRIDE
   Layered after tailwind.css to restyle light components.
   ========================================================= */

:root {
  --onyx: #0b0b0c;
  --onyx2: #121214;
  --gold: #D4AF37;
  --goldSoft: #E0C463;
  --line: rgba(255,255,255,.12);
}

/* ===== Page surface ===== */
body {
  background:
    radial-gradient(900px 600px at 10% -10%, rgba(212,175,55,.08), transparent 60%),
    radial-gradient(900px 500px at 120% 120%, rgba(255,255,255,.06), transparent 55%),
    linear-gradient(180deg, #111 0%, #0b0b0c 100%);
  color: #fff;
  font-family: Inter, ui-sans-serif, system-ui;
}

/* subtle watermark for brand pages */
body.surface::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    url("/images/bg/assets/tree_001.png") right -80px bottom -60px / 560px auto no-repeat;
  opacity: .08;
  filter: grayscale(1) contrast(1.1);
  pointer-events: none;
  z-index: -1;
}

/* ===== Card styles ===== */
.card,
.hero,
.stat-pill {
  background: rgba(18,18,20,.7) !important;
  border-color: var(--line) !important;
  color: #fff !important;
  backdrop-filter: blur(6px);
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}

/* pill for metrics */
.stat-value { color: #EED488 !important; }
.stat-label { color: rgba(255,255,255,.65) !important; }

/* ===== Buttons ===== */
.btn-primary {
  background: linear-gradient(90deg, var(--gold), var(--goldSoft)) !important;
  color: var(--onyx) !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(212,175,55,.25);
}
.btn-primary:hover {
  background: linear-gradient(90deg, var(--goldSoft), var(--gold)) !important;
}

.btn-light,
.btn-ghost {
  background: rgba(255,255,255,.05) !important;
  border: 1px solid var(--line) !important;
  color: #fff !important;
}
.btn-light:hover,
.btn-ghost:hover {
  background: rgba(255,255,255,.1) !important;
}

/* ===== Chips (presets, legends) ===== */
.chip {
  background: rgba(255,255,255,.06) !important;
  border: 1px solid var(--line) !important;
  color: rgba(255,255,255,.85) !important;
}
.chip.is-selected {
  background: linear-gradient(90deg,var(--gold),var(--goldSoft)) !important;
  border-color: rgba(212,175,55,.5) !important;
  color: var(--onyx) !important;
}

/* ===== Inputs, select ===== */
input, select {
  background: rgba(255,255,255,.06) !important;
  border: 1px solid var(--line) !important;
  color: #fff !important;
}
input::placeholder {
  color: rgba(255,255,255,.45) !important;
}
input:focus, select:focus {
  box-shadow: 0 0 0 4px rgba(212,175,55,.2);
  border-color: rgba(212,175,55,.6);
}

/* ===== Activity list ===== */
.activity-list {
  background: rgba(255,255,255,.04) !important;
  border: 1px solid var(--line) !important;
  border-radius: 1rem;
  overflow: hidden;
  color: #fff;
}

.activity-row-compact {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: .9rem 1rem;
  position: relative;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  transition: all .2s ease;
}
.activity-row-compact:first-child {
  border-top: 0;
}
.activity-row-compact::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--gold), var(--goldSoft));
  opacity: .85;
}
.activity-row-compact:hover {
  background: rgba(255,255,255,.1);
  transform: translateY(-1px);
}
.activity-row-compact.is-clickable:hover{
 background: rgba(255,255,255,.3);
}
.act-title { color: #fff !important; }
.act-sub { color: rgba(255,255,255,.75) !important; }
.act-amt {
  color: #EED488 !important;
  background: rgba(212,175,55,.15);
  border: 1px solid rgba(212,175,55,.35);
  padding: .25rem .55rem;
  border-radius: .5rem;
}
.act-receipt {
  color: rgba(255,255,255,.7);
  text-decoration: underline;
  font-size: .8rem;
}
.act-receipt:hover {
  color: #E0C463;
}
.act-footer {
  color: rgba(255,255,255,.6);
  border-top: 1px solid var(--line);
}

/* ===== Pill chips ===== */
.pill-paid {
  background: rgba(34,197,94,.15);
  border-color: rgba(34,197,94,.35);
  color: #4ade80;
}
.pill-up {
  background: rgba(250,204,21,.15);
  border-color: rgba(250,204,21,.35);
  color: #facc15;
}
.pill-fail {
  background: rgba(239,68,68,.15);
  border-color: rgba(239,68,68,.35);
  color: #f87171;
}
.pill-pledge {
  background: rgba(212,175,55,.15);
  border-color: rgba(212,175,55,.35);
  color: #E0C463;
}

/* dot before text */
.pill-dot::before {
  content: "";
  display: inline-block;
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: currentColor;
  opacity: .9;
}

/* ===== Banner ===== */
[data-cancel-banner="1"] {
  background: rgba(250,204,21,.1) !important;
  color: #facc15 !important;
  border-bottom: 1px solid rgba(250,204,21,.25);
}

/* ===== Skeleton loaders ===== */
.skel-line, .skel-bar, .skel-btn, .skel-title, .skel-sub {
  background-color: rgba(255,255,255,.08) !important;
}

/* ===== Projection boxes ===== */
.bg-brand-50\/60,
.bg-slate-50\/60 {
  background: rgba(255,255,255,.06) !important;
  border: 1px solid var(--line) !important;
  color: #fff !important;
}
