/* Denver-apple ? professional polish pass */

:root {
  --amber: #3ecf8e;
  --amber-light: #86efac;
  --yellow: #fb923c;
  --purple: #b4a3ff;
  --text: #eef0f3;
  --text-muted: #9aa3b2;
  --text-dim: #6f7887;
}

/* Header people-online indicator */
.people-online {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.7rem 0.35rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(74, 222, 128, 0.45);
  background: rgba(22, 163, 74, 0.16);
  color: #dcfce7;
  white-space: nowrap;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.15);
}
.people-online-icons {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding-left: 0.85rem;
}
.people-online-dot {
  position: absolute;
  left: 0;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  margin-top: -0.25rem;
  border-radius: 50%;
  background: #22c55e;
  animation: peopleOnlineBlink 1.1s ease-in-out infinite;
}
.people-online-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid rgba(74, 222, 128, 0.7);
  animation: peopleOnlineRing 1.1s ease-out infinite;
}
.people-online-person {
  color: #86efac;
  opacity: 0.95;
}
.people-online-person-2 {
  margin-left: -0.35rem;
  opacity: 0.7;
  color: #4ade80;
}
.people-online-copy {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  line-height: 1;
}
.people-online-count {
  font-size: 0.86rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #f0fdf4;
}
.people-online-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  color: #86efac;
}
@keyframes peopleOnlineBlink {
  0%,
  100% {
    opacity: 1;
    background: #22c55e;
  }
  50% {
    opacity: 0.35;
    background: #4ade80;
  }
}
@keyframes peopleOnlineRing {
  0% {
    transform: scale(0.7);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.85);
    opacity: 0;
  }
}
@media (max-width: 720px) {
  .people-online-label {
    display: none;
  }
  .people-online {
    padding: 0.32rem 0.55rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .people-online-dot,
  .people-online-dot::after {
    animation: none;
  }
}

/* Header people-online indicator end */

/* Hide redundant hamburger on split home when rail nav is visible */
.page-home .home-split-rail-top .nav-toggle {
  display: none;
}
@media (max-width: 720px) {
  .page-home .home-split-rail-top .nav-toggle {
    display: inline-flex;
  }
  .page-home .home-rail-nav:not(.open) {
    display: none;
  }
  .page-home .home-rail-nav.open {
    display: flex;
  }
}

/* Left brand rail ? editorial spacing */
.home-split {
  grid-template-columns: minmax(20rem, 28rem) 1fr;
}
.home-split-rail {
  padding: 1.6rem 1.75rem 1.85rem !important;
  gap: 1.35rem !important;
  justify-content: flex-start;
}
.home-split-copy {
  margin-top: auto;
  padding-top: 1.5rem;
}
.home-kicker {
  font-size: 0.68rem !important;
  letter-spacing: 0.22em !important;
  color: #86efac !important;
  opacity: 0.95;
}
.home-brand-title {
  font-size: clamp(2rem, 3.4vw, 2.85rem) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.035em !important;
  font-weight: 750 !important;
  max-width: 11ch;
}
.home-lead {
  font-size: 0.95rem !important;
  line-height: 1.65 !important;
  max-width: 26rem;
  color: var(--text-muted) !important;
}
.home-rail-nav {
  gap: 0.45rem 1rem !important;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(168, 174, 186, 0.1);
}
.home-rail-nav a {
  font-size: 0.78rem !important;
  letter-spacing: 0.01em;
  opacity: 0.9;
}
.home-rail-nav a:hover {
  opacity: 1;
  color: #86efac !important;
  border-bottom-color: transparent !important;
}
.home-rail-actions {
  gap: 0.65rem;
  margin-top: 0.35rem;
}
.home-rail-actions .btn {
  min-height: 2.55rem;
  padding: 0.65rem 1.15rem;
  font-size: 0.84rem;
  letter-spacing: 0.01em;
}

/* Buttons ? restrained professional treatment */
.btn {
  border-radius: 0.35rem !important;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease !important;
}
.btn-primary {
  background: linear-gradient(180deg, #fb923c 0%, #f97316 55%, #ea580c 100%) !important;
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.22) !important;
  font-weight: 650 !important;
}
.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}
.btn-outline {
  border-width: 1px !important;
  border-color: rgba(168, 174, 186, 0.28) !important;
  background: rgba(255, 255, 255, 0.02) !important;
}
.brand-badge {
  background: linear-gradient(120deg, #22c55e 0%, #4ade80 35%, #fb923c 70%, #a78bfa 100%) !important;
  letter-spacing: 0.08em !important;
  font-size: 0.68rem !important;
  padding: 0.38rem 0.5rem !important;
  box-shadow: 0 6px 16px rgba(34, 197, 94, 0.18) !important;
}

/* Login ? docked as right rail beside slideshow */
.home-media-hero {
  display: grid !important;
  grid-template-columns: 1fr minmax(17.5rem, 22rem) !important;
  align-items: stretch !important;
}
.home-media-hero .slideshow.slideshow-docked {
  position: relative !important;
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  height: 100% !important;
  min-height: 100% !important;
}
.home-media-login {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  grid-column: 2;
  grid-row: 1;
  width: 100% !important;
  max-width: none !important;
  height: 100%;
  margin: 0 !important;
  padding: 1.35rem 1.25rem 1.2rem !important;
  border-radius: 0 !important;
  border: none !important;
  border-left: 1px solid rgba(167, 139, 250, 0.28) !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 8;
  backdrop-filter: blur(16px) saturate(1.1);
}
.home-media-login-kicker {
  color: #fb923c !important;
  font-size: 0.62rem !important;
  letter-spacing: 0.18em !important;
}
.home-media-login-head h2 {
  font-size: 1.2rem !important;
  font-weight: 700 !important;
}
.home-media-login .form-control {
  min-height: 2.45rem;
  border-radius: 0.35rem !important;
  font-size: 0.9rem;
}
.home-media-login .btn-primary {
  min-width: 6.5rem;
}
.home-media-hero .slide-panel {
  right: 1.2rem !important;
  left: 1.2rem !important;
  max-width: min(28rem, calc(100% - 2.4rem)) !important;
}
/* Move slideshow controls off the login zone */
.slideshow-docked .slideshow-controls-bar {
  top: auto !important;
  bottom: 1.2rem !important;
  left: 1.2rem !important;
  right: auto !important;
}
.slideshow-docked .slideshow-controls-bar .slideshow-btn {
  background: rgba(10, 12, 16, 0.55) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  letter-spacing: 0.12em !important;
  font-size: 0.68rem !important;
  backdrop-filter: blur(8px);
}
.slideshow-dots-rail {
  top: 55% !important;
  right: 0.85rem !important;
}
.slideshow-dots-rail .slideshow-dot {
  background: rgba(10, 12, 16, 0.45) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  min-width: 2.15rem;
  height: 1.75rem !important;
  font-size: 0.62rem;
}
.slideshow-dots-rail .slideshow-dot.active {
  background: rgba(62, 207, 142, 0.92) !important;
  border-color: #86efac !important;
  color: #062816 !important;
}

/* Captions ? cleaner dock, avoid login overlap */
.home-media-hero .slide-panel {
  left: 1.2rem !important;
  right: auto !important;
  bottom: 4.4rem !important;
  max-width: min(28rem, calc(100% - 8rem)) !important;
}
.slide-caption-dock {
  padding: 0.85rem 1rem !important;
  border-radius: 0.45rem !important;
  border-left-width: 3px !important;
  background: linear-gradient(135deg, rgba(10, 12, 16, 0.78), rgba(34, 197, 94, 0.14), rgba(124, 58, 237, 0.1)) !important;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}
.slide-caption-dock .slide-title {
  font-size: clamp(1.25rem, 2.4vw, 1.85rem) !important;
  font-weight: 700 !important;
}
.slide-caption-dock .slide-subtitle {
  font-size: 0.86rem !important;
  color: #d1d5db !important;
  line-height: 1.45;
}
.slide-index {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem) !important;
  color: rgba(255, 255, 255, 0.18) !important;
}

/* Metrics strip ? ledger feel */
.home-strip {
  background: linear-gradient(180deg, #151820, #12151a) !important;
  border-top: 1px solid rgba(168, 174, 186, 0.08);
}
.home-strip-item {
  padding: 1.15rem 1.4rem !important;
}
.home-strip-label {
  font-size: 0.62rem !important;
  letter-spacing: 0.16em !important;
  color: #7a8494 !important;
}
.home-strip-value {
  font-size: 1.15rem !important;
  color: #86efac !important;
  font-weight: 700;
}
.home-strip-note {
  color: #6f7887 !important;
  font-size: 0.72rem !important;
}

/* Voices / testimonials */
.home-voices {
  padding: 3rem 0 3.5rem !important;
}
.testimonials-title {
  font-size: clamp(1.45rem, 2.4vw, 1.9rem) !important;
  letter-spacing: -0.03em;
}
.testimonials-deck {
  border-radius: 0.85rem !important;
  border-color: rgba(168, 174, 186, 0.12) !important;
}
.testimonial-deck-card .testimonial-content {
  padding: 2rem 2rem 4.75rem !important;
}
.testimonials-deck .testimonial-quote p {
  font-size: clamp(1.05rem, 1.8vw, 1.35rem) !important;
  color: #e8eaed !important;
  font-weight: 550;
}

/* Marketing header / footer polish */
.site-header-slim {
  backdrop-filter: blur(16px);
}
.site-header-slim .brand-name {
  font-size: 0.95rem !important;
}
.site-footer-wide {
  padding-top: 2.4rem !important;
}
.footer-col-label {
  color: #86efac !important;
}
.footer-nav-col a {
  color: #c5cbd5;
  font-size: 0.88rem;
}
.footer-nav-col a:hover {
  color: #fff;
}

/* Soften page background glows ? less neon */
body {
  background:
    radial-gradient(ellipse 65% 40% at 6% 0%, rgba(62, 207, 142, 0.08), transparent 55%),
    radial-gradient(ellipse 50% 35% at 95% 5%, rgba(249, 115, 22, 0.07), transparent 50%),
    radial-gradient(ellipse 45% 30% at 75% 95%, rgba(167, 139, 250, 0.07), transparent 55%),
    linear-gradient(180deg, #0f1115 0%, #12151a 50%, #0c0e12 100%) !important;
}

/* Forms / cards general */
.form-control {
  border-radius: 0.35rem !important;
}
.card,
.dash-panel {
  border-radius: 0.55rem !important;
}

@media (max-width: 1100px) {
  .home-media-login {
    right: 0.85rem !important;
    top: 0.85rem !important;
  }
}
@media (max-width: 960px) {
  .home-brand-title {
    max-width: none;
    font-size: clamp(2rem, 8vw, 2.6rem) !important;
  }
  .home-media-hero .slide-panel {
    bottom: 1rem !important;
    max-width: calc(100% - 2rem) !important;
  }
  .slideshow-docked .slideshow-controls-bar {
    bottom: 0.85rem !important;
  }
}

/* Home: split testimonies + calculator */
.home-engage {
  padding: 2.75rem 0 3.25rem;
}
.home-voices-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}
.home-voice-card {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  min-height: 14rem;
  border: 1px solid rgba(168, 174, 186, 0.14);
  border-radius: 0.75rem;
  overflow: hidden;
  background: #1a1e25;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}
.home-voice-media {
  border-right: 1px solid rgba(168, 174, 186, 0.12);
  background: #12151a;
}
.home-voice-media img {
  width: 100%;
  height: 100%;
  min-height: 14rem;
  object-fit: cover;
}
.home-voice-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.2rem 1.25rem;
}
.home-voice-body .testimonial-quote p {
  font-family: var(--font-display);
  font-size: clamp(0.98rem, 1.4vw, 1.12rem);
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
}
.home-voice-body .testimonial-author {
  margin-top: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.home-calc-block {
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(168, 174, 186, 0.12);
}
.home-calc-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.15rem;
}
.home-calculator .calc-widget-main,
.home-calculator .calc-widget-side {
  background: #1c2027 !important;
  border: 1px solid rgba(168, 174, 186, 0.14) !important;
}
@media (max-width: 900px) {
  .home-voices-pair { grid-template-columns: 1fr; }
  .home-calc-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .home-voice-card { grid-template-columns: 1fr; }
  .home-voice-media img { min-height: 10rem; }
  .home-voice-media {
    border-right: none;
    border-bottom: 1px solid rgba(168, 174, 186, 0.12);
  }
}

/* Headquarters panel + testimonies split */
.home-hq-voices {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1rem;
  margin-top: 1.25rem;
  align-items: stretch;
}
.home-hq-panel {
  position: relative;
  margin: 0;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(168, 174, 186, 0.14);
  min-height: 22rem;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
}
.home-hq-panel img {
  width: 100%;
  height: 100%;
  min-height: 22rem;
  object-fit: cover;
  display: block;
}
.home-hq-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.1rem 1.2rem;
  background: linear-gradient(180deg, transparent, rgba(10, 12, 16, 0.88));
  color: #eef0f3;
}
.home-hq-caption h3 {
  margin: 0.2rem 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}
.home-hq-caption p:last-child {
  margin: 0;
  color: #fb923c;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.home-voices-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.home-voice-card-stack {
  grid-template-columns: 1fr !important;
  min-height: 0;
  flex: 1;
}
.home-voice-card-stack .home-voice-body {
  padding: 1.25rem 1.35rem;
}

/* Contact HQ banner */
.contact-hq-banner {
  position: relative;
  border-radius: 0.85rem;
  overflow: hidden;
  border: 1px solid rgba(168, 174, 186, 0.16);
  min-height: 18rem;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.3);
}
.contact-hq-image {
  width: 100%;
  height: clamp(16rem, 42vw, 26rem);
  object-fit: cover;
  display: block;
}
.contact-hq-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.35rem 1.5rem 1.45rem;
  background: linear-gradient(180deg, transparent, rgba(10, 12, 16, 0.9));
}
.contact-hq-title {
  margin: 0.25rem 0 0.3rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  letter-spacing: -0.03em;
  color: #fff;
}
.contact-hq-tag {
  margin: 0;
  color: #fb923c;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}
@media (max-width: 900px) {
  .home-hq-voices,
  .contact-split {
    grid-template-columns: 1fr;
  }
  .home-hq-panel,
  .home-hq-panel img {
    min-height: 16rem;
  }
}

/* HQ photo slide ? keep building readable */
.slide.slide-photo img {
  object-position: center 42%;
}
.home-media-hero:has(.slide.slide-photo.active) .home-media-shade {
  opacity: 0.28;
  mix-blend-mode: normal;
  background: linear-gradient(
    180deg,
    rgba(10, 12, 16, 0.12) 0%,
    rgba(10, 12, 16, 0.08) 48%,
    rgba(10, 12, 16, 0.55) 100%
  );
}

/* Denver-apple logo mark (replaces D&A text badges) */
.brand-with-logo {
  gap: 0.55rem;
}
.brand-logo {
  display: block;
  height: 2.65rem;
  width: auto;
  max-width: 9.5rem;
  object-fit: contain;
  border-radius: 0.35rem;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}
.brand-stacked.brand-with-logo {
  flex-direction: column;
  align-items: flex-start;
}
.brand-stacked .brand-logo {
  height: 4.75rem;
  max-width: 12.5rem;
}
.brand-stacked .brand-tagline {
  margin: 0.15rem 0 0;
  max-width: 14rem;
}
.brand-logo-footer {
  height: 4.25rem;
  max-width: 11rem;
  margin-bottom: 0.55rem;
}
.footer-brand-block .brand-logo-footer + .stat-note {
  margin-top: 0.15rem;
}
.admin-sidebar-logo {
  width: 3.25rem !important;
  height: 3.25rem !important;
  padding: 0.2rem !important;
  border-radius: 0.65rem !important;
  background: #fff !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22) !important;
  overflow: hidden;
}
.admin-sidebar-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.app-loader-logo {
  display: block;
  width: auto;
  height: 4.75rem;
  max-width: 12rem;
  object-fit: contain;
  border-radius: 0.45rem;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  margin-bottom: 0.35rem;
}
.app-loader-mark {
  width: 2.6rem !important;
  height: 2.6rem !important;
}
.app-loader-spinner {
  width: 2.6rem !important;
  height: 2.6rem !important;
}
@media (max-width: 640px) {
  .brand-logo {
    height: 2.25rem;
    max-width: 7.5rem;
  }
  .brand-stacked .brand-logo {
    height: 3.75rem;
    max-width: 10rem;
  }
}

/* Register form ? professional sections */
.register-page {
  max-width: 52rem;
  margin: 0 auto;
  padding-bottom: 3rem;
}
.register-hero {
  margin: 1.25rem 0 1.5rem;
}
.register-hero .page-title {
  margin-top: 0.35rem;
}
.register-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 1.25rem 0 0;
  padding: 0;
}
.register-steps li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid rgba(168, 174, 186, 0.16);
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}
.register-steps span {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: #fb923c;
}
.register-form {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 !important;
  overflow: hidden;
}
.register-section {
  padding: 1.35rem 1.4rem 1.5rem;
  border-bottom: 1px solid rgba(168, 174, 186, 0.12);
}
.register-section:last-child {
  border-bottom: none;
}
.register-section-head {
  margin-bottom: 1.1rem;
}
.register-section-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #34d399;
}
.register-section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.register-section-note {
  margin: 0.3rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.register-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 700px) {
  .register-grid {
    grid-template-columns: 1fr 1fr;
  }
  .register-span-2 {
    grid-column: 1 / -1;
  }
  .register-empty-cell {
    display: block;
  }
}
.register-empty-cell {
  display: none;
}
.register-callout {
  margin: 0 0 1.15rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid #fb923c;
  border-radius: 0 0.45rem 0.45rem 0;
  background: rgba(249, 115, 22, 0.08);
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}
.register-callout strong {
  color: var(--text);
}
.register-doc-block {
  padding: 1rem;
  border: 1px solid rgba(168, 174, 186, 0.14);
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.015);
}
.register-doc-title {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #a78bfa;
}
.register-terms {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 0 0 1.25rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(168, 174, 186, 0.16);
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.02);
}
.register-terms input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}
.register-terms label {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
}
.register-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
}
.register-actions .btn {
  min-width: 12rem;
}
@media (max-width: 700px) {
  .register-steps {
    grid-template-columns: 1fr 1fr;
  }
  .register-section {
    padding: 1.15rem 1rem 1.25rem;
  }
}

/* ========== Mobile-friendly overrides ========== */
html, body {
  max-width: 100%;
  overflow-x: clip;
}
img, video, svg {
  max-width: 100%;
}
.slide img,
.home-hq-panel img {
  max-width: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-home .layout,
.home-split,
.home-split-media {
  max-width: 100%;
}

/* Tablet / phone: stack rail + media, unfloat login */
@media (max-width: 960px) {
  .home-split {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
  }
  .home-split-rail {
    padding: 1.1rem 1rem 1.25rem !important;
    gap: 1rem !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(168, 174, 186, 0.14);
  }
  .home-brand-title {
    max-width: none !important;
    font-size: clamp(1.85rem, 8.5vw, 2.55rem) !important;
  }
  .home-rail-lead {
    font-size: 0.95rem !important;
  }
  .home-rail-actions {
    flex-wrap: wrap;
  }
  .home-rail-actions .btn {
    flex: 1 1 auto;
    min-width: 9.5rem;
    justify-content: center;
  }

  .home-split-media,
  .home-media-hero {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }
  .home-media-hero {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
  }
  .home-media-hero .slideshow.slideshow-docked {
    position: relative !important;
    order: 1;
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    height: clamp(15.5rem, 58vw, 22rem) !important;
    min-height: clamp(15.5rem, 58vw, 22rem) !important;
    overflow: hidden !important;
  }
  .home-media-login {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    grid-column: auto;
    grid-row: auto;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    order: 2;
    margin: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    border-left: none !important;
    border-top: 1px solid rgba(167, 139, 250, 0.28) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28) !important;
  }
  .home-media-hero .header-hero-shade,
  .home-media-shade {
    display: none !important;
  }

  /* Captions + chrome inside slide frame */
  .home-media-hero .slide-panel {
    left: 0.75rem !important;
    right: 0.75rem !important;
    bottom: 3.35rem !important;
    max-width: none !important;
  }
  .slide-caption-dock {
    padding: 0.65rem 0.75rem !important;
  }
  .slide-caption-dock .slide-title {
    font-size: clamp(1.05rem, 4.8vw, 1.45rem) !important;
  }
  .slide-caption-dock .slide-subtitle {
    font-size: 0.78rem !important;
  }
  .slide-index {
    display: none !important;
  }
  .slideshow-docked .slide img,
  .slideshow-docked .slide.active img {
    transform: none !important;
  }
  .slideshow-dots-rail {
    top: auto !important;
    bottom: 0.7rem !important;
    right: 0.65rem !important;
    left: auto !important;
    transform: none !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    max-width: calc(100% - 7.5rem);
    justify-content: flex-end;
    gap: 0.28rem !important;
  }
  .slideshow-dots-rail .slideshow-dot {
    min-width: 1.7rem !important;
    height: 1.45rem !important;
    font-size: 0.55rem !important;
  }
  .slideshow-docked .slideshow-controls-bar {
    left: 0.65rem !important;
    bottom: 0.65rem !important;
    gap: 0.35rem;
  }
  .slideshow-docked .slideshow-controls-bar .slideshow-btn {
    padding: 0.35rem 0.55rem !important;
    font-size: 0.6rem !important;
  }

  /* HQ / testimonials / contact */
  .home-hq-voices,
  .contact-split,
  .home-voices-pair {
    grid-template-columns: 1fr !important;
  }
  .home-hq-panel,
  .home-hq-panel img {
    min-height: 14rem !important;
  }
  .contact-hq-image {
    height: clamp(12rem, 48vw, 18rem) !important;
  }
  .contact-hq-overlay {
    padding: 1rem !important;
  }
  .contact-hq-title {
    font-size: 1.25rem !important;
  }

  /* Marketing header */
  .site-header-slim .header-inner-tri {
    grid-template-columns: auto 1fr auto !important;
    gap: 0.45rem;
    padding: 0.45rem 0 !important;
  }
  .brand-logo {
    height: 2.15rem !important;
    max-width: 7.25rem !important;
  }
  .header-col-end .btn-sm {
    padding: 0.35rem 0.6rem;
    font-size: 0.75rem;
  }

  /* Footer */
  .footer-wide-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 1.1rem !important;
  }
  .brand-logo-footer {
    height: 3.5rem !important;
    max-width: 9.5rem !important;
  }

  /* Register */
  .register-page {
    padding-left: 0.15rem;
    padding-right: 0.15rem;
  }
  .register-section {
    padding: 1.05rem 0.9rem 1.15rem !important;
  }
  .register-actions .btn {
    width: 100%;
    min-width: 0 !important;
  }
}

@media (max-width: 720px) {
  .page-home .home-split-rail-top {
    align-items: center;
  }
  .page-home .home-rail-nav.open {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.35rem 0 0.15rem;
  }
  .page-home .home-rail-nav.open a {
    padding: 0.55rem 0.15rem;
    border-bottom: 1px solid rgba(168, 174, 186, 0.12);
  }
  .home-strip {
    grid-template-columns: 1fr 1fr !important;
  }
  .home-engage {
    padding: 1.75rem 0 2.25rem !important;
  }
  .home-voices-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .app-loader-logo {
    height: 3.75rem !important;
    max-width: 10rem !important;
  }
}

@media (max-width: 560px) {
  .home-strip {
    grid-template-columns: 1fr !important;
  }
  .home-strip-item {
    border-right: none !important;
    border-bottom: 1px solid rgba(168, 174, 186, 0.12);
  }
  .footer-wide-grid {
    grid-template-columns: 1fr !important;
  }
  .register-steps {
    grid-template-columns: 1fr 1fr !important;
  }
  .brand-stacked .brand-logo {
    height: 3.35rem !important;
    max-width: 9.25rem !important;
  }
  .home-media-hero .slideshow.slideshow-docked {
    height: 15.5rem !important;
    min-height: 15.5rem !important;
  }
  .home-media-hero .slide-panel {
    bottom: 2.85rem !important;
  }
  .slideshow-dots-rail {
    max-width: calc(100% - 6.25rem);
  }
  .slide-caption-dock .slide-eyebrow {
    font-size: 0.62rem !important;
    letter-spacing: 0.14em !important;
  }
  .header-col-end .hide-mobile {
    display: none !important;
  }
}

/* Touch targets */
@media (hover: none) and (pointer: coarse) {
  .main-nav a,
  .home-rail-nav a,
  .footer-nav-col a {
    min-height: 2.5rem;
    display: inline-flex;
    align-items: center;
  }
  .slideshow-docked .slideshow-controls-bar .slideshow-btn,
  .slideshow-dots-rail .slideshow-dot {
    min-height: 2.25rem;
  }
}

/* Form surfaces ? refined orange ? grey ? purple */
.form-card,
.register-form.card,
.home-media-login,
.site-admin-login-page.card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 70% at 8% -10%, rgba(249, 115, 22, 0.28), transparent 52%),
    radial-gradient(ellipse 85% 65% at 100% 110%, rgba(139, 92, 246, 0.26), transparent 50%),
    linear-gradient(168deg, #252a33 0%, #1a1e26 52%, #151820 100%) !important;
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
  color: #eef0f3 !important;
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}
.home-media-login {
  border-top: none !important;
  border-right: none !important;
  border-bottom: none !important;
  border-left: 1px solid rgba(167, 139, 250, 0.28) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.form-card::before,
.register-form.card::before,
.home-media-login::before,
.site-admin-login-page.card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, #f97316 0%, #a78bfa 55%, #64748b 100%);
  pointer-events: none;
  z-index: 1;
}
.register-form {
  padding-top: 0.15rem;
}
.register-form .register-section {
  border-bottom-color: rgba(148, 163, 184, 0.12) !important;
}
.register-section-kicker,
.home-media-login-kicker {
  color: #fb923c !important;
  letter-spacing: 0.16em !important;
}
.register-section-title,
.register-doc-title,
.home-media-login-head h2,
.form-card .page-title,
.site-admin-login-page .page-title {
  color: #f8fafc !important;
  letter-spacing: -0.02em;
}
.form-card label,
.register-form label,
.home-media-login label,
.register-terms label {
  color: #d6dde8 !important;
  font-weight: 600;
  font-size: 0.82rem;
}
.site-admin-login-page .page-subtitle,
.register-section-note,
.register-form .stat-note,
.form-card .stat-note,
.form-card .page-subtitle,
.home-media-login-foot,
.home-media-login .stat-note {
  color: #9aa6b8 !important;
}
.register-callout {
  background:
    linear-gradient(90deg, rgba(249, 115, 22, 0.14), rgba(167, 139, 250, 0.1)) !important;
  border-left: 3px solid #f97316 !important;
  border-radius: 0 0.5rem 0.5rem 0;
  color: #cbd5e1 !important;
}
.register-callout strong {
  color: #ffffff !important;
}
.register-terms label a,
.home-media-login .text-amber,
.form-card .text-amber {
  color: #fb923c !important;
}
.home-media-login .home-admin-link {
  color: #c4b5fd !important;
}
.register-doc-block,
.register-terms {
  background: rgba(15, 18, 24, 0.55) !important;
  border: 1px solid rgba(148, 163, 184, 0.16) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color: #eef0f3 !important;
}
.register-doc-title {
  color: #c4b5fd !important;
}
.register-steps {
  gap: 0.55rem !important;
}
.register-steps li {
  background: rgba(15, 18, 24, 0.45) !important;
  border: 1px solid rgba(148, 163, 184, 0.16) !important;
  color: #cbd5e1 !important;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.register-steps li:nth-child(1) { border-top: 2px solid #f97316; }
.register-steps li:nth-child(2) { border-top: 2px solid #94a3b8; }
.register-steps li:nth-child(3) { border-top: 2px solid #a78bfa; }
.register-steps li:nth-child(4) { border-top: 2px solid #f97316; }
.register-steps span {
  color: #fb923c !important;
}
.form-card .form-control,
.register-form .form-control,
.home-media-login .form-control,
.site-admin-login-page .form-control {
  background: rgba(10, 12, 16, 0.72) !important;
  border: 1px solid rgba(148, 163, 184, 0.22) !important;
  color: #f1f5f9 !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.form-card .form-control::placeholder,
.register-form .form-control::placeholder,
.home-media-login .form-control::placeholder {
  color: #6b7688 !important;
}
.form-card .form-control:hover,
.register-form .form-control:hover,
.home-media-login .form-control:hover {
  border-color: rgba(249, 115, 22, 0.45) !important;
}
.form-card .form-control:focus,
.register-form .form-control:focus,
.home-media-login .form-control:focus,
.site-admin-login-page .form-control:focus {
  background: rgba(10, 12, 16, 0.9) !important;
  border-color: #a78bfa !important;
  box-shadow:
    0 0 0 3px rgba(167, 139, 250, 0.2),
    0 0 0 1px rgba(249, 115, 22, 0.25) !important;
  outline: none;
}
.form-card .btn-primary,
.register-form .btn-primary,
.home-media-login .btn-primary {
  background: linear-gradient(125deg, #f97316 0%, #ea580c 42%, #9333ea 100%) !important;
  border: none !important;
  color: #ffffff !important;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.28);
}
.form-card .btn-primary:hover,
.register-form .btn-primary:hover,
.home-media-login .btn-primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 12px 28px rgba(147, 51, 234, 0.28);
}
.form-card .btn-outline,
.register-form .btn-outline {
  background: rgba(100, 116, 139, 0.16) !important;
  border: 1px solid rgba(167, 139, 250, 0.45) !important;
  color: #e2e8f0 !important;
}
.form-card .btn-outline:hover,
.register-form .btn-outline:hover {
  background: rgba(167, 139, 250, 0.18) !important;
  border-color: #a78bfa !important;
}

/* Left AI assistant ? brand polish */
.site-ai-chat-toggle {
  border-color: rgba(167, 139, 250, 0.45) !important;
  background:
    radial-gradient(circle at 20% 0%, rgba(249, 115, 22, 0.35), transparent 55%),
    linear-gradient(180deg, #2a2f38, #1a1e26) !important;
  color: #eef0f3 !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4) !important;
}
.site-ai-chat-toggle:hover {
  border-color: #fb923c !important;
  transform: translateY(-1px);
}
.site-ai-chat-toggle-icon {
  background: linear-gradient(135deg, #f97316, #a78bfa) !important;
  color: #0f1115 !important;
  font-weight: 800;
  border-radius: 0.55rem;
  min-width: 1.85rem;
  min-height: 1.85rem;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
}
.site-ai-chat-toggle-text {
  color: #cbd5e1 !important;
}
.site-ai-chat-card {
  border-color: rgba(167, 139, 250, 0.35) !important;
  background:
    radial-gradient(ellipse 90% 60% at 0% 0%, rgba(249, 115, 22, 0.2), transparent 55%),
    radial-gradient(ellipse 80% 55% at 100% 100%, rgba(167, 139, 250, 0.22), transparent 50%),
    linear-gradient(180deg, #252a33, #151820) !important;
}
.site-ai-chat-eyebrow { color: #fb923c !important; }
.site-ai-chat-title { color: #f8fafc !important; }
.site-ai-chat-bubble-assistant {
  background: rgba(42, 47, 56, 0.92) !important;
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #e2e8f0 !important;
}
.site-ai-chat-bubble-user {
  background: linear-gradient(125deg, #f97316, #9333ea) !important;
  color: #fff !important;
}
.site-ai-chat-form {
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(10, 12, 16, 0.45);
}
.site-ai-chat-form .form-control {
  background: rgba(10, 12, 16, 0.75) !important;
  border-color: rgba(148, 163, 184, 0.22) !important;
  color: #f1f5f9 !important;
}
.site-ai-chat-form .btn-primary {
  background: linear-gradient(125deg, #f97316, #9333ea) !important;
  border: none !important;
  color: #fff !important;
}
@media (max-width: 960px) {
  .page-home .site-left-rail {
    bottom: 5.5rem;
  }
}

/* Dashboard ? 4 referral profile slots */
.dash-referral-slots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.15rem;
}
.dash-referral-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.45rem;
  padding: 0.95rem 0.65rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(249, 115, 22, 0.12), transparent 60%),
    rgba(15, 18, 24, 0.55);
}
.dash-referral-slot.is-empty {
  border-style: dashed;
  opacity: 0.78;
}
.dash-referral-slot-num {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fb923c;
}
.dash-referral-slot-avatar,
.dash-referral-list-avatar {
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid rgba(167, 139, 250, 0.45);
  background: #1c2027;
  display: grid;
  place-items: center;
}
.dash-referral-slot-avatar .dash-profile-photo,
.dash-referral-list-avatar .dash-profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dash-referral-slot-avatar .dash-profile-initials,
.dash-referral-list-avatar .dash-profile-initials {
  font-size: 1.05rem;
  font-weight: 700;
  color: #e2e8f0;
}
.dash-referral-slot-avatar-empty {
  border-style: dashed;
  color: #94a3b8;
  font-size: 1.4rem;
  font-weight: 600;
}
.dash-referral-slot-name {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.25;
  word-break: break-word;
}
.dash-referral-slot-meta {
  margin: 0;
  font-size: 0.7rem;
  color: #94a3b8;
  text-transform: capitalize;
}
.dash-referral-user-with-photo {
  flex-direction: row !important;
  align-items: center;
  gap: 0.75rem !important;
}
.dash-referral-list-avatar {
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
}
@media (max-width: 900px) {
  .dash-referral-slots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .dash-referral-slots {
    grid-template-columns: 1fr 1fr;
  }
}

/* Admin / dashboard referral tree */
.dash-referral-tree,
.admin-referral-tree {
  margin-top: 0.85rem;
}
.dash-referral-tree-connector {
  width: 2px;
  height: 1.1rem;
  margin: 0.15rem auto 0.55rem;
  background: linear-gradient(180deg, #fb923c, #a78bfa);
  border-radius: 999px;
}
.admin-referral-tree-root {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(167, 139, 250, 0.28);
  background:
    radial-gradient(ellipse 90% 70% at 0% 0%, rgba(249, 115, 22, 0.16), transparent 55%),
    rgba(15, 18, 24, 0.55);
}
.admin-referral-tree-root-label {
  margin: 0 0 0.15rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a78bfa;
}
.admin-referral-tree-compact .dash-referral-slot {
  padding: 0.7rem 0.45rem 0.65rem;
}
.admin-referral-tree-compact .dash-referral-slot-avatar {
  width: 3.35rem;
  height: 3.35rem;
}
.admin-referral-tree-compact .dash-referral-slot-name {
  font-size: 0.74rem;
}
.admin-user-card-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
}
.admin-user-card .dash-referral-slots {
  margin-top: 0.35rem;
}
.dash-referral-slot-name a {
  text-decoration: none;
}
.dash-referral-slot-name a:hover {
  text-decoration: underline;
}

/* Register ? split referral panel */
.register-referral-panel {
  margin: 0 0 1.15rem !important;
  padding: 1.35rem 1.4rem 1.25rem !important;
}
.register-referral-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1rem 0 0.85rem;
}
.register-referral-choice-card {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 0;
  padding: 0.9rem 0.95rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 18, 24, 0.45);
  cursor: pointer;
}
.register-referral-choice-card:has(input:checked) {
  border-color: rgba(249, 115, 22, 0.55);
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.25) inset;
}
.register-referral-choice-card strong {
  display: block;
  color: #f8fafc;
  font-size: 0.92rem;
}
.register-referral-choice-card small {
  display: block;
  margin-top: 0.2rem;
  color: #9aa6b8;
  font-size: 0.78rem;
  line-height: 1.4;
}
.register-referral-choice-card input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}
.register-referral-identify {
  margin-top: 0.35rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}
.register-referral-result,
.register-referral-error {
  margin-top: 0.75rem !important;
}
.register-referral-status {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(148, 163, 184, 0.16);
}
.register-page .register-steps {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
@media (max-width: 700px) {
  .register-referral-choice {
    grid-template-columns: 1fr;
  }
  .register-page .register-steps {
    grid-template-columns: 1fr 1fr;
  }
  .register-referral-panel {
    padding: 1.1rem 1rem 1.05rem !important;
  }
}

/* Admin shell ? content left, vertical divider + right rail */
body:has(.admin-shell) .site-main {
  padding-bottom: 1.5rem !important;
  padding-right: 0 !important;
}
.admin-shell {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 16.75rem !important;
  gap: 0 !important;
  align-items: stretch !important;
  flex-direction: unset !important;
  min-height: calc(100vh - 7rem);
}
.admin-shell .admin-content-wrap {
  min-width: 0;
  grid-column: 1;
  padding-right: 1.25rem;
}
.admin-shell .admin-main {
  width: auto !important;
  min-width: 0;
}
.admin-shell .admin-sidebar.admin-right-panel {
  position: sticky !important;
  top: 5rem !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: 100% !important;
  max-width: none !important;
  height: calc(100vh - 5.5rem) !important;
  max-height: calc(100vh - 5.5rem) !important;
  z-index: 40 !important;
  transform: none !important;
  display: flex !important;
  flex-direction: column !important;
  grid-column: 2;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  padding: 0.35rem 0 0.85rem 1.15rem !important;
  overflow: hidden;
}
.admin-shell .admin-sidebar.admin-right-panel::before,
.admin-shell .admin-sidebar.admin-right-panel::after {
  display: none !important;
  content: none !important;
}
.admin-shell .admin-rail-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  background: linear-gradient(
    180deg,
    rgba(148, 163, 184, 0.08) 0%,
    rgba(249, 115, 22, 0.55) 12%,
    rgba(167, 139, 250, 0.55) 50%,
    rgba(52, 211, 153, 0.45) 88%,
    rgba(148, 163, 184, 0.08) 100%
  );
  pointer-events: none;
}
.admin-shell .admin-rail-head {
  display: flex !important;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.15rem 0.35rem 0.75rem;
  margin: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}
.admin-shell .admin-rail-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fb923c;
}
.admin-shell .admin-rail-meta {
  margin: 0;
  font-size: 0.68rem;
  color: #94a3b8;
}
.admin-shell .admin-sidebar-brand,
.admin-shell .admin-sidebar-lists,
.admin-shell .admin-sidebar-people,
.admin-shell .admin-sidebar-code-list,
.admin-shell .admin-sidebar-toggle-toolbar,
.admin-shell .admin-sidebar-summary,
.admin-shell .admin-sidebar-block,
.admin-shell .admin-sidebar-list-block,
.admin-shell .admin-sidebar-kpis,
.admin-shell .admin-shortcut-list,
.admin-shell .admin-sidebar-section-label {
  display: none !important;
}
.admin-shell .admin-sidebar-scroll {
  overflow: auto !important;
  flex: 1 1 auto;
  max-height: none !important;
  padding: 0.55rem 0.2rem 0.55rem 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0;
  scrollbar-width: thin;
}
.admin-shell .admin-rail-block {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.1rem !important;
  padding: 0.7rem 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14) !important;
}
.admin-shell .admin-rail-block:last-child {
  border-bottom: none !important;
}
.admin-shell .admin-rail-heading {
  display: block !important;
  margin: 0 0 0.4rem 0.35rem !important;
  font-size: 0.6rem !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: #94a3b8 !important;
  font-weight: 700 !important;
}
.admin-shell .admin-rail-find {
  padding-top: 0.35rem !important;
}
.admin-shell .admin-rail-find .admin-sidebar-lookup {
  margin: 0;
}
.admin-shell .admin-rail-find .admin-sidebar-shortcut-label {
  display: block !important;
  margin: 0 0 0.35rem 0.35rem !important;
  font-size: 0.6rem !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: #94a3b8 !important;
  font-weight: 700 !important;
}
.admin-shell .admin-rail-find .admin-sidebar-lookup-row {
  display: flex !important;
  gap: 0.35rem !important;
  padding: 0 0.15rem;
}
.admin-shell .admin-rail-find .admin-sidebar-lookup-input {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  padding: 0.4rem 0.5rem !important;
  font-size: 0.72rem !important;
  border-radius: 0.4rem !important;
  background: rgba(15, 18, 24, 0.55) !important;
  border: 1px solid rgba(148, 163, 184, 0.22) !important;
  color: #e2e8f0 !important;
}
.admin-shell .admin-rail-find .btn-sm {
  padding: 0.4rem 0.55rem !important;
  font-size: 0.68rem !important;
  white-space: nowrap;
}
.admin-shell .admin-sidebar-nav {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  gap: 0 !important;
  overflow: visible !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}
.admin-shell .admin-rail-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.55rem !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0.48rem 0.45rem !important;
  border: none !important;
  border-radius: 0.4rem !important;
  background: transparent !important;
  text-decoration: none !important;
  color: #e2e8f0 !important;
  transition: background 0.15s ease, color 0.15s ease;
}
.admin-shell .admin-rail-row:hover {
  background: rgba(249, 115, 22, 0.1) !important;
  color: #fff !important;
}
.admin-shell .admin-rail-row.is-active {
  background: rgba(167, 139, 250, 0.12) !important;
  color: #fff !important;
  box-shadow: inset 2px 0 0 var(--nav-accent, #a78bfa);
}
.admin-shell .admin-rail-row-copy {
  display: grid !important;
  gap: 0.05rem !important;
  min-width: 0 !important;
  flex: 1 1 auto;
}
.admin-shell .admin-rail-row-label {
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  color: inherit !important;
}
.admin-shell .admin-rail-row-note {
  display: block !important;
  font-size: 0.58rem !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  color: #64748b !important;
  line-height: 1.2 !important;
}
.admin-shell .admin-rail-row-value {
  flex-shrink: 0 !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums;
  color: var(--nav-accent, #34d399) !important;
}
.admin-shell .admin-sidebar-footer.admin-rail-footer {
  display: block !important;
  margin-top: auto !important;
  padding: 0.65rem 0.15rem 0 !important;
  border-top: 1px solid rgba(148, 163, 184, 0.16) !important;
}
.admin-shell .admin-topbar-actions .admin-sidebar-toggle {
  display: none !important;
}

@media (max-width: 1100px) {
  .admin-shell {
    grid-template-columns: minmax(0, 1fr) 15rem !important;
  }
}

@media (max-width: 900px) {
  body:has(.admin-shell) .site-main {
    padding-bottom: 6.5rem !important;
  }
  .admin-shell {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    min-height: 0;
  }
  .admin-shell .admin-content-wrap {
    padding-right: 0;
  }
  .admin-shell .admin-sidebar.admin-right-panel {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    grid-column: auto;
    width: 100% !important;
    height: auto !important;
    max-height: 38vh !important;
    border-radius: 0.85rem 0.85rem 0 0 !important;
    border-top: 1px solid rgba(148, 163, 184, 0.25) !important;
    background: #151820 !important;
    padding: 0.55rem 0.65rem 0.7rem !important;
  }
  .admin-shell .admin-rail-divider {
    display: none;
  }
  .admin-shell .admin-rail-head,
  .admin-shell .admin-rail-find,
  .admin-shell .admin-sidebar-footer {
    display: none !important;
  }
  .admin-shell .admin-sidebar-scroll {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    flex-direction: row !important;
    gap: 0.75rem !important;
    padding: 0 !important;
  }
  .admin-shell .admin-rail-block {
    flex: 0 0 auto !important;
    min-width: 10.5rem;
    max-height: 100%;
    overflow-y: auto;
    padding: 0.25rem 0.35rem !important;
    border-bottom: none !important;
    border-right: 1px solid rgba(148, 163, 184, 0.16) !important;
  }
  .admin-shell .admin-sidebar-nav {
    flex-direction: row !important;
    gap: 0.75rem !important;
  }
}
/* User shell ? content left, vertical divider + right rail (matches admin) */
body:has(.user-shell) .site-main {
  padding-bottom: 1.5rem !important;
  padding-right: 0 !important;
}
.user-shell {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 16.75rem !important;
  gap: 0 !important;
  align-items: stretch !important;
  flex-direction: unset !important;
  min-height: calc(100vh - 7rem);
}
.user-shell .user-content-wrap {
  min-width: 0;
  grid-column: 1;
  padding-right: 1.25rem;
  width: 100%;
}
.user-shell .user-main {
  width: 100% !important;
  min-width: 0;
}
.user-shell .user-page-inner {
  width: 100%;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}
.user-shell .user-sidebar.user-right-panel {
  position: sticky !important;
  top: 5rem !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: 100% !important;
  max-width: none !important;
  height: calc(100vh - 5.5rem) !important;
  max-height: calc(100vh - 5.5rem) !important;
  z-index: 40 !important;
  transform: none !important;
  display: flex !important;
  flex-direction: column !important;
  grid-column: 2;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  padding: 0.35rem 0 0.85rem 1.15rem !important;
  overflow: hidden;
}
.user-shell .user-sidebar.user-right-panel::before,
.user-shell .user-sidebar.user-right-panel::after {
  display: none !important;
  content: none !important;
}
.user-shell .user-rail-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  background: linear-gradient(
    180deg,
    rgba(148, 163, 184, 0.08) 0%,
    rgba(249, 115, 22, 0.55) 12%,
    rgba(167, 139, 250, 0.55) 50%,
    rgba(52, 211, 153, 0.45) 88%,
    rgba(148, 163, 184, 0.08) 100%
  );
  pointer-events: none;
}
.user-shell .user-rail-head {
  display: block !important;
  padding: 0.15rem 0.35rem 0.75rem;
  margin: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}
.user-shell .user-rail-head-link {
  display: flex !important;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}
.user-shell .user-rail-avatar {
  width: 2.35rem !important;
  height: 2.35rem !important;
  flex-shrink: 0;
}
.user-shell .user-rail-avatar .dash-profile-photo,
.user-shell .user-rail-avatar .dash-profile-initials {
  width: 100% !important;
  height: 100% !important;
}
.user-shell .user-rail-kicker {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.25;
}
.user-shell .user-rail-meta {
  margin: 0.1rem 0 0;
  font-size: 0.68rem;
  color: #94a3b8;
}
.user-shell .user-sidebar-brand,
.user-shell .user-shortcut-list,
.user-shell .user-sidebar-section-label,
.user-shell .user-sidebar-section-link,
.user-shell .user-sidebar-link {
  display: none !important;
}
.user-shell .user-sidebar-scroll {
  overflow: auto !important;
  flex: 1 1 auto;
  max-height: none !important;
  padding: 0.55rem 0.2rem 0.55rem 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0;
  scrollbar-width: thin;
}
.user-shell .user-rail-block {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.1rem !important;
  padding: 0.7rem 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14) !important;
}
.user-shell .user-rail-block:last-child {
  border-bottom: none !important;
}
.user-shell .user-rail-heading {
  display: block !important;
  margin: 0 0 0.4rem 0.35rem !important;
  font-size: 0.6rem !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: #94a3b8 !important;
  font-weight: 700 !important;
}
.user-shell .user-sidebar-nav {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  gap: 0 !important;
  overflow: visible !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}
.user-shell .user-sidebar-section {
  display: contents !important;
}
.user-shell .user-rail-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.55rem !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0.48rem 0.45rem !important;
  border: none !important;
  border-radius: 0.4rem !important;
  background: transparent !important;
  text-decoration: none !important;
  color: #e2e8f0 !important;
  transition: background 0.15s ease, color 0.15s ease;
}
.user-shell .user-rail-row:hover {
  background: rgba(249, 115, 22, 0.1) !important;
  color: #fff !important;
}
.user-shell .user-rail-row.is-active {
  background: rgba(167, 139, 250, 0.12) !important;
  color: #fff !important;
  box-shadow: inset 2px 0 0 var(--nav-accent, #a78bfa);
}
.user-shell .user-rail-row-copy {
  display: grid !important;
  gap: 0.05rem !important;
  min-width: 0 !important;
  flex: 1 1 auto;
}
.user-shell .user-rail-row-label {
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  color: inherit !important;
}
.user-shell .user-rail-row-note {
  display: block !important;
  font-size: 0.58rem !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  color: #64748b !important;
  line-height: 1.2 !important;
}
.user-shell .user-rail-row-value {
  flex-shrink: 0 !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums;
  color: var(--nav-accent, #34d399) !important;
}
.user-shell .user-sidebar-footer.user-rail-footer {
  display: block !important;
  margin-top: auto !important;
  padding: 0.65rem 0.15rem 0 !important;
  border-top: 1px solid rgba(148, 163, 184, 0.16) !important;
}
.user-shell .user-topbar-actions .user-sidebar-toggle {
  display: none !important;
}

@media (max-width: 1100px) {
  .user-shell {
    grid-template-columns: minmax(0, 1fr) 15rem !important;
  }
}

@media (max-width: 900px) {
  body:has(.user-shell) .site-main {
    padding-bottom: 6.5rem !important;
  }
  .user-shell {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    min-height: 0;
  }
  .user-shell .user-content-wrap {
    padding-right: 0;
  }
  .user-shell .user-sidebar.user-right-panel {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    grid-column: auto;
    width: 100% !important;
    height: auto !important;
    max-height: 38vh !important;
    border-radius: 0.85rem 0.85rem 0 0 !important;
    border-top: 1px solid rgba(148, 163, 184, 0.25) !important;
    background: #151820 !important;
    padding: 0.55rem 0.65rem 0.7rem !important;
  }
  .user-shell .user-rail-divider {
    display: none;
  }
  .user-shell .user-rail-head,
  .user-shell .user-sidebar-footer {
    display: none !important;
  }
  .user-shell .user-sidebar-scroll {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    flex-direction: row !important;
    gap: 0.75rem !important;
    padding: 0 !important;
  }
  .user-shell .user-rail-block {
    flex: 0 0 auto !important;
    min-width: 10.5rem;
    max-height: 100%;
    overflow-y: auto;
    padding: 0.25rem 0.35rem !important;
    border-bottom: none !important;
    border-right: 1px solid rgba(148, 163, 184, 0.16) !important;
  }
  .user-shell .user-sidebar-nav {
    flex-direction: row !important;
    gap: 0.75rem !important;
  }
}

/* Shared right-rail typography + visibility (admin + user) */
.admin-shell,
.user-shell {
  --rail-text: #f8fafc;
  --rail-muted: #cbd5e1;
  --rail-soft: #94a3b8;
  --rail-accent: #fb923c;
  --rail-value: #4ade80;
  --rail-line: rgba(203, 213, 225, 0.28);
  --rail-hover: rgba(249, 115, 22, 0.16);
  --rail-active: rgba(52, 211, 153, 0.14);
}
.admin-shell {
  grid-template-columns: minmax(0, 1fr) 18.5rem !important;
}
.user-shell {
  grid-template-columns: minmax(0, 1fr) 18.5rem !important;
}
.admin-shell .admin-sidebar.admin-right-panel,
.user-shell .user-sidebar.user-right-panel {
  font-family: var(--font, "IBM Plex Sans", "Segoe UI", sans-serif) !important;
  padding: 0.45rem 0.15rem 0.95rem 1.35rem !important;
  color: var(--rail-text);
}
.admin-shell .admin-rail-divider,
.user-shell .user-rail-divider {
  width: 2px !important;
  background: linear-gradient(
    180deg,
    rgba(251, 146, 60, 0.15) 0%,
    #fb923c 18%,
    #a78bfa 52%,
    #34d399 82%,
    rgba(52, 211, 153, 0.15) 100%
  ) !important;
  box-shadow: 0 0 10px rgba(251, 146, 60, 0.25);
}
.admin-shell .admin-rail-head,
.user-shell .user-rail-head {
  padding: 0.25rem 0.4rem 0.9rem !important;
  border-bottom: 1px solid var(--rail-line) !important;
}
.admin-shell .admin-rail-kicker,
.user-shell .user-rail-kicker {
  font-family: var(--font-display, Syne, sans-serif) !important;
  font-size: 0.98rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  color: #fff !important;
  line-height: 1.25 !important;
}
.admin-shell .admin-rail-kicker {
  font-size: 0.82rem !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: var(--rail-accent) !important;
}
.admin-shell .admin-rail-meta,
.user-shell .user-rail-meta {
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  color: var(--rail-muted) !important;
}
.admin-shell .admin-rail-heading,
.user-shell .user-rail-heading,
.admin-shell .admin-rail-find .admin-sidebar-shortcut-label {
  font-family: var(--font-display, Syne, sans-serif) !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  color: var(--rail-accent) !important;
  font-weight: 700 !important;
  margin: 0 0 0.5rem 0.4rem !important;
}
.admin-shell .admin-rail-block,
.user-shell .user-rail-block {
  padding: 0.85rem 0 !important;
  border-bottom: 1px solid var(--rail-line) !important;
  gap: 0.18rem !important;
}
.admin-shell .admin-rail-row,
.user-shell .user-rail-row {
  padding: 0.58rem 0.55rem !important;
  border-radius: 0.5rem !important;
  gap: 0.65rem !important;
  color: var(--rail-text) !important;
}
.admin-shell .admin-rail-row:hover,
.user-shell .user-rail-row:hover {
  background: var(--rail-hover) !important;
  color: #fff !important;
}
.admin-shell .admin-rail-row.is-active,
.user-shell .user-rail-row.is-active {
  background: var(--rail-active) !important;
  color: #fff !important;
  box-shadow: inset 3px 0 0 var(--nav-accent, #34d399) !important;
}
.admin-shell .admin-rail-row-label,
.user-shell .user-rail-row-label {
  font-family: var(--font, "IBM Plex Sans", sans-serif) !important;
  font-size: 0.9rem !important;
  font-weight: 650 !important;
  line-height: 1.3 !important;
  color: #f8fafc !important;
  letter-spacing: 0.01em;
}
.admin-shell .admin-rail-row:hover .admin-rail-row-label,
.user-shell .user-rail-row:hover .user-rail-row-label,
.admin-shell .admin-rail-row.is-active .admin-rail-row-label,
.user-shell .user-rail-row.is-active .user-rail-row-label {
  color: #fff !important;
}
.admin-shell .admin-rail-row-note,
.user-shell .user-rail-row-note {
  font-size: 0.7rem !important;
  letter-spacing: 0.04em !important;
  text-transform: none !important;
  color: var(--rail-muted) !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
}
.admin-shell .admin-rail-row-value,
.user-shell .user-rail-row-value {
  font-family: ui-monospace, "IBM Plex Mono", Consolas, monospace !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  color: var(--nav-accent, var(--rail-value)) !important;
  text-shadow: 0 0 12px color-mix(in srgb, var(--nav-accent, #4ade80) 35%, transparent);
}
.admin-shell .admin-rail-find .admin-sidebar-lookup-input {
  font-size: 0.84rem !important;
  padding: 0.5rem 0.6rem !important;
  color: #f8fafc !important;
  border-color: rgba(251, 146, 60, 0.35) !important;
  background: rgba(15, 18, 24, 0.75) !important;
}
.admin-shell .admin-rail-find .btn-sm {
  font-size: 0.78rem !important;
  padding: 0.5rem 0.7rem !important;
  font-weight: 700 !important;
}
.user-shell .user-rail-avatar {
  width: 2.7rem !important;
  height: 2.7rem !important;
  border: 2px solid rgba(251, 146, 60, 0.45);
  border-radius: 999px;
  overflow: hidden;
}
.admin-shell .admin-sidebar-footer .btn,
.user-shell .user-sidebar-footer .btn {
  font-size: 0.84rem !important;
  font-weight: 650 !important;
  border-color: rgba(251, 146, 60, 0.4) !important;
  color: #fed7aa !important;
}
.admin-shell .admin-sidebar-footer .btn:hover,
.user-shell .user-sidebar-footer .btn:hover {
  background: rgba(249, 115, 22, 0.16) !important;
  color: #fff !important;
}

@media (max-width: 1100px) {
  .admin-shell,
  .user-shell {
    grid-template-columns: minmax(0, 1fr) 16.75rem !important;
  }
  .admin-shell .admin-rail-row-label,
  .user-shell .user-rail-row-label {
    font-size: 0.84rem !important;
  }
}

/* User dashboard: stretch main content to the right divider */
.user-shell .dash-app-container-user,
.user-shell .user-dash-frame,
.user-shell .user-page-frame {
  width: 100% !important;
  max-width: none !important;
}
.user-shell .dashboard-grid-main {
  grid-template-columns: 1fr !important;
  width: 100% !important;
}
.user-shell .dashboard-grid-main > div,
.user-shell .dashboard-grid-main > aside {
  width: 100% !important;
  max-width: none !important;
}
.user-shell .dashboard-grid-main > aside {
  display: grid !important;
  gap: 1rem !important;
}
@media (min-width: 900px) {
  .user-shell .dashboard-grid-main > aside {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  .user-shell .dashboard-grid-main > aside > .dash-panel {
    margin-bottom: 0 !important;
    height: 100%;
  }
}
.user-shell #dash-codes,
.user-shell #dash-notifications,
.user-shell #dash-referrals,
.user-shell #dash-cycle,
.user-shell #dashCalc,
.user-shell .card-grid-3,
.user-shell .investment-calculator {
  width: 100% !important;
  max-width: none !important;
}
.user-shell #dashCalc .calc-widget-side {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
}

/* Recent payouts board */
.payouts-board {
  overflow: hidden;
}
.payouts-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(8, 12, 18, 0.45);
}
.payouts-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 36rem;
}
.payouts-table th,
.payouts-table td {
  padding: 0.7rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  vertical-align: middle;
}
.payouts-table th {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fb923c;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.65);
  position: sticky;
  top: 0;
}
.payouts-table tbody tr:hover {
  background: rgba(249, 115, 22, 0.08);
}
.payouts-table tbody tr:last-child td {
  border-bottom: none;
}
.payouts-rank {
  width: 2.5rem;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.payouts-name {
  color: #f8fafc;
  font-weight: 650;
}
.payouts-amount {
  color: #4ade80;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, Consolas, monospace;
  white-space: nowrap;
}
.payouts-amount-stake {
  color: #fb923c;
}
.payouts-amount-earn {
  color: #4ade80;
}
.payouts-cashout,
.payouts-country {
  color: #cbd5e1;
  font-size: 0.88rem;
}
.payouts-code {
  color: #a78bfa;
  font-size: 0.78rem;
}

/* Last-hour cash-out board (calculator side panel) */
.cashout-hour-board {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.cashout-hour-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.cashout-hour-live {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.8rem 0.42rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(74, 222, 128, 0.65);
  background: rgba(22, 163, 74, 0.22);
  color: #dcfce7;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1;
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.2);
}
.cashout-hour-live-dot {
  position: relative;
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  animation: cashoutOnlineBlink 1.1s ease-in-out infinite;
}
.cashout-hour-live-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid rgba(74, 222, 128, 0.7);
  animation: cashoutOnlineRing 1.1s ease-out infinite;
}
.cashout-hour-live-label {
  text-transform: uppercase;
  color: #86efac;
}
.cashout-hour-live-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.15rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.35);
  border: 1px solid rgba(134, 239, 172, 0.45);
  color: #f0fdf4;
  font-variant-numeric: tabular-nums;
}
@keyframes cashoutOnlineBlink {
  0%,
  100% {
    opacity: 1;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
  }
  50% {
    opacity: 0.35;
    background: #4ade80;
    box-shadow: 0 0 8px 1px rgba(74, 222, 128, 0.8);
  }
}
@keyframes cashoutOnlineRing {
  0% {
    transform: scale(0.7);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.85);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cashout-hour-live-dot,
  .cashout-hour-live-dot::after {
    animation: none;
  }
  .cashout-hour-live-dot {
    opacity: 1;
  }
}
.cashout-hour-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.cashout-hour-item {
  display: grid;
  grid-template-columns: 1.75rem 1fr auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.55rem;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.12);
}
.cashout-hour-item:hover {
  border-color: rgba(249, 115, 22, 0.35);
  background: rgba(249, 115, 22, 0.06);
}
.cashout-hour-rank {
  color: #94a3b8;
  font-weight: 700;
  font-size: 0.82rem;
  text-align: center;
}
.cashout-hour-copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.cashout-hour-name {
  color: #f8fafc;
  font-size: 0.9rem;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cashout-hour-meta {
  color: #94a3b8;
  font-size: 0.75rem;
}
.cashout-hour-amount {
  color: #4ade80;
  font-weight: 700;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, Consolas, monospace;
  white-space: nowrap;
}
.cashout-hour-footnote {
  color: #64748b;
  font-size: 0.75rem;
  margin-top: auto;
}
