/* Rodmont Legacy / Claim Your Surplus brand layer.
   Loaded after every other stylesheet. It remaps the template's palette to the logo's
   blue / gold / green, and adds life: glow, gradients, hover lift and the Today pulse banner. */

:root {
  --bg-primary: #070d1a;
  --bg-secondary: #0a1224;
  --bg-tertiary: #0c1529;
  --bg-card: #0f1a31;
  --bg-card-hover: #14213d;
  --bg-input: #0a1428;

  /* The template calls its accent "gold"; ours is the logo blue, with real gold as a highlight. */
  --gold: #4c86ff;
  --gold-hover: #2f6df0;
  --gold-champagne: #a9c4ff;
  --gold-bronze: #1d4fc4;
  --gold-tint: rgba(76, 134, 255, 0.12);
  --gold-glow: rgba(76, 134, 255, 0.30);

  --brand-blue: #1d5fe0;
  --brand-blue-lite: #4c86ff;
  --brand-gold: #f2b10d;
  --brand-gold-lite: #ffd25e;
  --brand-green: #16b062;
  --brand-green-lite: #3fd08a;

  --text-primary: #eef3fc;
  --text-muted: #b7c3d8;
  --text-subtle: #8593ac;

  --border: #22304f;
  --border-subtle: rgba(34, 48, 79, 0.6);
  --border-light: #1a2742;
  --border-gold: rgba(76, 134, 255, 0.45);

  --success: #3fd08a;
  --success-bg: rgba(63, 208, 138, 0.12);
}

body {
  background:
    radial-gradient(ellipse 900px 500px at 85% -10%, rgba(29, 95, 224, 0.16), transparent 70%),
    radial-gradient(ellipse 700px 420px at 30% 110%, rgba(22, 176, 98, 0.08), transparent 70%),
    var(--bg-primary) !important;
  background-attachment: fixed !important;
}
[style*="background-color: var(--bg-primary)"] { background-color: transparent !important; }

/* ---------- sidebar ---------- */
.sidebar {
  background: linear-gradient(180deg, #0b1630 0%, #08101f 100%) !important;
  border-right: 1px solid rgba(76, 134, 255, 0.14) !important;
}
.sidebar-brand .brand-icon {
  background: #fff !important;
  padding: 3px 4px !important;
  flex: 0 0 auto !important;
  width: 54px !important; min-width: 54px !important; height: 38px !important;
  border-radius: 10px !important;
  box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 6px 18px rgba(29,95,224,.35);
}
.sidebar.collapsed .sidebar-brand .brand-icon { width: 40px !important; min-width: 40px !important; height: 30px !important; padding: 2px !important; }
@media (max-width: 1200px) and (min-width: 769px) { .sidebar-brand .brand-icon { width: 40px !important; min-width: 40px !important; height: 30px !important; padding: 2px !important; } }
.sidebar-brand .brand-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand-name.brand-v2 { font-weight: 800 !important; letter-spacing: -0.01em; font-size: .98rem !important; white-space: nowrap; }
.sidebar-brand { gap: 10px !important; }
.sidebar-section-title { color: #5f7194 !important; letter-spacing: .14em !important; }
.sidebar-link { border-radius: 10px !important; transition: background .15s, color .15s, transform .15s !important; }
.sidebar-link:hover { background: rgba(76, 134, 255, 0.10) !important; color: #fff !important; transform: translateX(2px); }
.sidebar-link.active {
  background: linear-gradient(90deg, rgba(29,95,224,.35), rgba(22,176,98,.18)) !important;
  color: #fff !important;
  box-shadow: inset 3px 0 0 var(--brand-gold), 0 6px 20px -8px rgba(29,95,224,.6);
}
.sidebar-link.active svg { color: var(--brand-gold-lite); }

/* ---------- page header ---------- */
.page-header .page-title {
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #ffffff 40%, #a9c4ff);
  -webkit-background-clip: text; background-clip: text; color: transparent !important;
}

/* ---------- cards & buttons ---------- */
.card, .stat-card, .md-card, .md-stat {
  background: linear-gradient(180deg, #111d36, #0e182e) !important;
  border-color: var(--border-light) !important;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease !important;
}
.stat-card:hover, a.md-stat:hover, .md-card:hover {
  transform: translateY(-2px);
  border-color: rgba(76, 134, 255, .45) !important;
  box-shadow: 0 14px 30px -18px rgba(29, 95, 224, .7);
}
.btn-primary {
  background: linear-gradient(180deg, #4c86ff, #1d5fe0) !important;
  color: #fff !important; border: 0 !important;
  box-shadow: 0 6px 18px -6px rgba(29,95,224,.7);
}
.btn-primary:hover { filter: brightness(1.08); }

/* Today stat tiles: a colored stripe and icon tint per tile */
.md-stats .md-stat { position: relative; overflow: hidden; padding-top: 18px !important; }
.md-stats .md-stat::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; }
.md-stats .md-stat:nth-child(1)::before { background: #ef4444; }
.md-stats .md-stat:nth-child(2)::before { background: var(--brand-gold); }
.md-stats .md-stat:nth-child(3)::before { background: var(--brand-blue-lite); }
.md-stats .md-stat:nth-child(4)::before { background: var(--brand-green); }
.md-stat-n { font-size: 1.9rem !important; font-weight: 800 !important; }

/* ---------- Today pulse banner ---------- */
.pulse {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px;
  margin: 0 0 22px; padding: 26px 28px;
  border-radius: 20px;
  background: linear-gradient(120deg, #1d5fe0 0%, #1747a8 45%, #0f2f6e 100%);
  box-shadow: 0 24px 50px -24px rgba(29, 95, 224, .8);
  color: #fff;
}
@media (max-width: 960px) { .pulse { grid-template-columns: 1fr; } }
.pulse-orbit { position: absolute; right: -60px; top: -40px; width: 620px; height: 420px; pointer-events: none; }
.pulse-main, .pulse-feed { position: relative; }
.pulse-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #dbe6ff; }
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brand-green-lite); box-shadow: 0 0 0 0 rgba(63,208,138,.7); animation: pulse-ping 1.8s infinite; }
@keyframes pulse-ping { 0% { box-shadow: 0 0 0 0 rgba(63,208,138,.7); } 70% { box-shadow: 0 0 0 10px rgba(63,208,138,0); } 100% { box-shadow: 0 0 0 0 rgba(63,208,138,0); } }
.pulse-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 18px 0 22px; }
.pulse-n { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.pulse-nums > div:nth-child(1) .pulse-n { color: var(--brand-gold-lite); }
.pulse-nums > div:nth-child(2) .pulse-n { color: #c8ffe3; }
.pulse-l { font-size: .85rem; color: #cfdcff; margin-top: 6px; }
.pulse-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pulse-btn { display: inline-flex; align-items: center; padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: .88rem; text-decoration: none;
  color: #fff; border: 1px solid rgba(255,255,255,.35); transition: background .15s, transform .15s; }
.pulse-btn:hover { background: rgba(255,255,255,.12); transform: translateY(-1px); }
.pulse-btn--solid { background: #fff; color: #1747a8; border-color: #fff; }
.pulse-btn--solid:hover { background: #eef3ff; }
.pulse-feed { background: rgba(5, 14, 34, .35); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: 16px; backdrop-filter: blur(6px); }
.pulse-feed-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 800; font-size: .95rem; margin-bottom: 10px; }
.pulse-badge { font-size: .72rem; font-weight: 800; color: #0b3d22; background: var(--brand-green-lite); padding: 3px 9px; border-radius: 999px; }
.pulse-feed ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pulse-feed a { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 10px; color: #fff; text-decoration: none; transition: background .15s; }
.pulse-feed a:hover { background: rgba(255,255,255,.08); }
.pulse-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .9rem; }
.pulse-av--0 { background: var(--brand-gold); color: #3a2a00; }
.pulse-av--1 { background: var(--brand-green-lite); color: #0b3d22; }
.pulse-av--2 { background: #fff; color: #1747a8; }
.pulse-who { min-width: 0; }
.pulse-who b { display: block; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pulse-who small { display: block; color: #bcd0ff; font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pulse-ago { font-size: .75rem; color: #bcd0ff; white-space: nowrap; }
.pulse-empty { color: #dbe6ff; font-size: .9rem; margin: 0; }
.pulse-empty a { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .pulse-dot { animation: none; }
  .sidebar-link:hover, .stat-card:hover, a.md-stat:hover, .md-card:hover { transform: none; }
}

/* The footer name badge doesn't fit the narrow icon rail. */
.sidebar.collapsed .brand-badge { display: none !important; }
@media (max-width: 1200px) and (min-width: 769px) { .brand-badge { display: none !important; } }
