/* =====================================================
   ResiApp Demo — REAL PRODUCT STYLES
   Scoped under .ra-app so it doesn't bleed into the landing
   Copied 1:1 from app's resiapp_design_system + sidebar + general_dashboard
   ===================================================== */

.ra-app {
  /* Real product tokens — do not change */
  --da-gold: #3b82f6;
  --da-gold-light: #60a5fa;
  --da-gold-dark: #2563eb;
  --da-gold-rgb: 59, 130, 246;
  --da-silver: #5C6168;
  --da-silver-light: #7A7F85;
  --da-silver-dark: #3E4247;
  --da-silver-rgb: 92, 97, 104;
  --da-royal: #0F2A52;
  --da-royal-light: #1A3D6E;
  --da-royal-rgb: 15, 42, 82;

  --ra-font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --ra-mono: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Courier New', monospace;

  --ra-bg: #08080d;
  --ra-bg-2: #0a0a0f;

  --ra-ink: #ffffff;
  --ra-ink-2: rgba(255,255,255,0.75);
  --ra-ink-3: rgba(255,255,255,0.5);
  --ra-ink-4: rgba(255,255,255,0.35);
  --ra-line: rgba(255,255,255,0.08);
  --ra-line-2: rgba(255,255,255,0.15);

  --ra-success: #22c55e;
  --ra-warning: #f59e0b;
  --ra-error: #ef4444;

  position: relative;
  display: flex;
  background: var(--ra-bg);
  color: var(--ra-ink);
  font-family: var(--ra-font);
  min-height: 640px;
  overflow: hidden;
  isolation: isolate;
  -webkit-font-smoothing: antialiased;
}

/* Background orbs — real product */
.ra-orbs {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.ra-orbs__blue {
  position: absolute;
  width: 700px; height: 420px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center,
      rgba(0,35,160,0.35) 0%,
      rgba(0,25,120,0.20) 35%,
      rgba(0,18,80,0.08) 60%,
      transparent 80%);
  filter: blur(50px);
  border-radius: 50%;
}
.ra-orbs__silver-tl {
  position: absolute;
  width: 400px; height: 400px;
  top: -80px; left: -80px;
  background: radial-gradient(circle at center,
      rgba(160,165,175,0.30) 0%,
      rgba(140,145,155,0.12) 40%,
      transparent 70%);
  filter: blur(40px);
  border-radius: 50%;
}
.ra-orbs__silver-br {
  position: absolute;
  width: 400px; height: 400px;
  bottom: -80px; right: -80px;
  background: radial-gradient(circle at center,
      rgba(160,165,175,0.30) 0%,
      rgba(140,145,155,0.12) 40%,
      transparent 70%);
  filter: blur(40px);
  border-radius: 50%;
}

/* Sidebar — real, 80px collapsed / 260px on hover */
.ra-sidebar {
  position: relative;
  flex-shrink: 0;
  width: 80px;
  background: linear-gradient(180deg,
    rgba(var(--da-royal-rgb),0.25) 0%,
    rgba(var(--da-royal-rgb),0.15) 50%,
    rgba(15,12,25,0.98) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-right: 1px solid rgba(var(--da-royal-rgb),0.25);
  display: flex;
  flex-direction: column;
  z-index: 10;
  transition: width 0.3s ease;
  overflow: hidden;
}
.ra-sidebar:hover { width: 260px; }

.ra-sidebar__header {
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border-bottom: 1px solid rgba(var(--da-royal-rgb),0.2);
  min-height: 80px;
}
.ra-sidebar:hover .ra-sidebar__header {
  justify-content: flex-start;
  padding: 1.5rem 1rem;
  gap: 0.75rem;
}
.ra-sidebar__logo {
  width: 40px; height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(var(--da-royal-rgb),0.45), rgba(var(--da-silver-rgb),0.35));
  color: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.06);
}
.ra-sidebar__logo svg { width: 20px; height: 20px; }
.ra-sidebar__logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  font-family: var(--ra-font);
  background: linear-gradient(135deg, var(--da-royal-light), var(--da-silver-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.ra-sidebar:hover .ra-sidebar__logo-text { opacity: 1; }

.ra-sidebar__nav {
  flex: 1;
  padding: 0.5rem 0;
  display: flex;
  flex-direction: column;
}

.ra-sidebar__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
  color: rgba(255,255,255,0.6);
  font-family: var(--ra-font);
  font-size: 0.9rem;
  font-weight: 500;
  background: transparent;
  border: 1px solid transparent;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  height: 44px;
  width: 44px;
  margin: 0.2rem auto;
  border-radius: 11px;
  box-sizing: border-box;
}
.ra-sidebar:hover .ra-sidebar__item {
  justify-content: flex-start;
  gap: 0.75rem;
  padding: 0 0.85rem;
  width: auto;
  height: 44px;
  margin: 0.2rem 0.75rem;
}
.ra-sidebar__item:hover {
  background: rgba(var(--da-royal-rgb),0.28);
  color: #fff;
}
.ra-sidebar__item.is-active {
  background: linear-gradient(135deg,
    rgba(var(--da-royal-rgb),0.4),
    rgba(var(--da-royal-rgb),0.22));
  color: #fff;
  border-color: rgba(var(--da-royal-rgb),0.4);
}
.ra-sidebar__item.is-active::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 60%;
  background: linear-gradient(180deg, var(--da-royal), var(--da-silver));
  border-radius: 0 4px 4px 0;
  opacity: 0;
}
.ra-sidebar:hover .ra-sidebar__item.is-active::before { opacity: 1; }

.ra-sidebar__icon {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.ra-sidebar__icon svg { width: 18px; height: 18px; stroke-width: 1.8; }
.ra-sidebar__label {
  white-space: nowrap;
  opacity: 0;
  width: 0;
  overflow: hidden;
  transition: opacity 0.2s ease;
}
.ra-sidebar:hover .ra-sidebar__label { opacity: 1; width: auto; }

.ra-sidebar__badge {
  margin-left: auto;
  background: var(--ra-error);
  color: #fff;
  font-family: var(--ra-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.ra-sidebar:hover .ra-sidebar__badge { opacity: 1; }
.ra-sidebar__badge-dot {
  position: absolute;
  top: 6px; right: 6px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ra-error);
  box-shadow: 0 0 6px var(--ra-error);
}
/* Disabled items render as plain icons, no pill */
.ra-sidebar__item[aria-disabled="true"] {
  border-color: transparent !important;
  background: transparent !important;
  cursor: default;
}
.ra-sidebar__item[aria-disabled="true"]:hover {
  background: transparent !important;
}

/* Main area */
.ra-main {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
  overflow-y: auto;
  max-height: 780px;
}
.ra-main::-webkit-scrollbar { width: 8px; }
.ra-main::-webkit-scrollbar-track { background: transparent; }
.ra-main::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, rgba(var(--da-royal-rgb),0.6), rgba(var(--da-royal-rgb),0.6));
  border-radius: 10px;
}

/* Page header (real product top bar) */
.ra-page-head {
  position: relative;
  z-index: 10;
  background: rgba(10,10,15,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.ra-page-head__title {
  font-family: var(--ra-font);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--da-gold) 0%, var(--da-gold-light) 50%, var(--da-royal-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  display: inline-block;
}
.ra-page-head__title::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--da-royal), var(--da-silver));
  border-radius: 2px;
}
.ra-page-head__sub {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  margin-top: 0.75rem;
}

.ra-page-head__right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.ra-user-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.8rem 0.35rem 0.35rem;
  border: 1px solid rgba(var(--da-gold-rgb),0.2);
  border-radius: 999px;
  background: rgba(var(--da-royal-rgb),0.12);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.85);
}
.ra-user-pill__av {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--da-royal), var(--da-silver));
  color: #fff;
  font-weight: 700;
  font-size: 0.72rem;
  display: grid; place-items: center;
}
.ra-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.2rem;
  background: linear-gradient(135deg, rgba(var(--da-royal-rgb),0.1), rgba(var(--da-royal-rgb),0.1));
  border: 1.5px solid rgba(var(--da-gold-rgb),0.3);
  border-radius: 12px;
  color: #fff;
  font-family: var(--ra-font);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 4px 15px rgba(var(--da-gold-rgb),0.1);
}
.ra-header-btn:hover {
  background: linear-gradient(135deg, rgba(var(--da-royal-rgb),0.2), rgba(var(--da-royal-rgb),0.2));
  border-color: rgba(var(--da-gold-rgb),0.5);
  transform: translateY(-2px);
}

/* Liquid glass shell wrapping content */
.ra-shell-wrap {
  padding: 1.75rem 1.5rem 2rem;
  position: relative;
  z-index: 1;
}
.ra-shell {
  position: relative;
  padding: 2rem 1.75rem 2rem;
  border-radius: 28px;
  background: rgba(255,255,255,0.045);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.06);
  border-top-color: rgba(255,255,255,0.2);
  border-left-color: rgba(255,255,255,0.1);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.1),
    inset 0 -1px 0 rgba(0,0,0,0.08),
    0 16px 64px -12px rgba(0,0,0,0.45),
    0 2px 12px rgba(0,0,0,0.15);
}
.ra-shell::before {
  content: '';
  position: absolute;
  top: 0; left: 4%; right: 4%;
  height: 1px;
  border-radius: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(255,255,255,0.3) 25%,
    rgba(255,255,255,0.5) 50%,
    rgba(255,255,255,0.3) 75%,
    transparent);
  pointer-events: none;
  z-index: 3;
}
.ra-shell::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 28px;
  background:
    radial-gradient(ellipse 60% 40% at 15% 5%, rgba(255,255,255,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 85% 95%, rgba(59,130,246,0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}
.ra-shell > * { position: relative; z-index: 1; }

/* Welcome */
.ra-welcome {
  margin-bottom: 1.5rem;
}
.ra-welcome__hi {
  font-family: var(--ra-font);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
  color: rgba(255,255,255,0.95);
}
.ra-welcome__sub {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.55);
}

/* KPI grid — real product */
.ra-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}
@media (max-width: 1100px) { .ra-kpi-grid { grid-template-columns: repeat(2, 1fr); } }

.ra-kpi {
  position: relative;
  border-radius: 20px;
  padding: 1.25rem 1.25rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  border: 1.5px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.035);
}
.ra-kpi::before {
  content: '';
  position: absolute;
  width: 160px; height: 160px;
  border-radius: 50%;
  top: -60px; right: -60px;
  background: rgba(255,255,255,0.08);
  filter: blur(50px);
  opacity: 0.4;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.ra-kpi:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.15);
  box-shadow: 0 14px 44px rgba(0,0,0,0.25);
}
.ra-kpi:hover::before { opacity: 0.7; }
.ra-kpi.is-open {
  border-color: rgba(var(--da-gold-rgb),0.4);
  box-shadow: 0 14px 44px rgba(var(--da-gold-rgb),0.15);
}

.ra-kpi__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
  position: relative;
}
.ra-kpi__label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255,255,255,0.5);
}
.ra-kpi__action {
  width: 26px; height: 26px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.5);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.25s ease;
}
.ra-kpi__action svg { width: 14px; height: 14px; stroke-width: 2; }
.ra-kpi:hover .ra-kpi__action {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85);
}
.ra-kpi.is-open .ra-kpi__action {
  background: rgba(var(--da-gold-rgb),0.2);
  color: var(--da-gold-light);
}
.ra-kpi.is-open .ra-kpi__action svg { transform: rotate(180deg); }

.ra-kpi__value {
  font-family: var(--ra-font);
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: -0.8px;
  line-height: 1.15;
  color: rgba(255,255,255,0.95);
  position: relative;
}
.ra-kpi__value-max {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
}
.ra-kpi__sub {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
  line-height: 1.4;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  position: relative;
}
.ra-kpi__trend {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
}
.ra-kpi__trend--up {
  background: rgba(34,197,94,0.15);
  color: #86efac;
}
.ra-kpi__trend--down {
  background: rgba(239,68,68,0.15);
  color: #fca5a5;
}
.ra-kpi__debtors { color: #fca5a5; font-weight: 600; }
.ra-kpi__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex: 1;
}
.ra-kpi__spark {
  margin-top: auto;
  margin-left: -1.25rem;
  margin-right: -1.25rem;
  margin-bottom: -0.9rem;
  border-radius: 0 0 18px 18px;
  overflow: hidden;
  opacity: 0.85;
  transition: opacity 0.3s ease;
  padding-top: 0.5rem;
}
.ra-kpi:hover .ra-kpi__spark { opacity: 1; }
.ra-kpi__spark svg { display: block; width: 100%; height: 42px; }

.ra-score-badge {
  padding: 0.3rem 0.65rem;
  border-radius: 99px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
  background: rgba(59,130,246,0.18);
  border: 1px solid rgba(59,130,246,0.4);
  color: #93c5fd;
}

/* Expandable details */
.ra-details {
  margin: 0 0 1.25rem;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  border-radius: 18px;
  background: rgba(var(--da-royal-rgb),0.12);
  border: 1px solid rgba(var(--da-gold-rgb),0.18);
  transition: max-height 0.45s cubic-bezier(0.2,0.8,0.2,1), opacity 0.3s, margin 0.3s, padding 0.3s;
}
.ra-details.is-open {
  max-height: 600px;
  opacity: 1;
  margin: 0 0 1.25rem;
  padding: 1rem 1.2rem;
}
.ra-details__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}
.ra-details__title {
  font-family: var(--ra-font);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.ra-details__close {
  width: 26px; height: 26px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  font-size: 0.85rem;
}
.ra-details__list { display: flex; flex-direction: column; gap: 0.4rem; }

.ra-debtor {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
  transition: all 0.2s ease;
}
.ra-debtor:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(var(--da-gold-rgb),0.3);
  transform: translateX(2px);
}
.ra-debtor__av {
  width: 36px; height: 36px;
  border-radius: 999px;
  display: grid; place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.ra-debtor__av--red { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.ra-debtor__av--green { background: linear-gradient(135deg, #22c55e, #15803d); }
.ra-debtor__av--blue { background: linear-gradient(135deg, #3b82f6, #1e40af); }
.ra-debtor__av--purple { background: linear-gradient(135deg, #a78bfa, #6d28d9); }
.ra-debtor__av--amber { background: linear-gradient(135deg, #f59e0b, #b45309); }
.ra-debtor__info { flex: 1; min-width: 0; }
.ra-debtor__name { font-size: 0.88rem; font-weight: 600; color: #fff; }
.ra-debtor__addr { font-size: 0.74rem; color: rgba(255,255,255,0.5); margin-top: 0.1rem; }
.ra-debtor__stats { text-align: right; }
.ra-debtor__amt { font-family: var(--ra-font); font-weight: 700; font-size: 0.92rem; color: #fff; }
.ra-debtor__amt--debt { color: #fca5a5; }
.ra-debtor__count { font-size: 0.7rem; color: rgba(255,255,255,0.4); margin-top: 0.1rem; }

/* Cash flow section */
.ra-section {
  padding: 1.2rem 1.3rem;
  border-radius: 20px;
  border: 1.5px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.035);
  margin-bottom: 1.25rem;
}
.ra-section__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.ra-section__title {
  font-family: var(--ra-font);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.ra-section__title-icon {
  font-size: 1.3rem;
  filter: drop-shadow(0 2px 8px rgba(var(--da-gold-rgb),0.3));
}

.ra-tabs {
  display: flex;
  gap: 0.2rem;
  padding: 0.25rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
}
.ra-tab {
  padding: 0.35rem 0.75rem;
  font-family: var(--ra-font);
  font-size: 0.75rem;
  font-weight: 600;
  background: transparent;
  color: rgba(255,255,255,0.5);
  border: none;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}
.ra-tab:hover:not(.is-active) { color: rgba(255,255,255,0.85); }
.ra-tab.is-active {
  background: linear-gradient(135deg, var(--da-royal), var(--da-silver));
  color: #fff;
  box-shadow: 0 2px 8px rgba(var(--da-royal-rgb),0.4);
}

.ra-cf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
.ra-cf-stat {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 1.1rem 1.15rem;
}
.ra-cf-stat__label {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.ra-cf-stat__value {
  font-family: var(--ra-font);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.ra-cf-stat__value--green { color: #86efac; }
.ra-cf-stat__value--blue { color: #93c5fd; }
.ra-cf-stat__value--red { color: #fca5a5; }
.ra-cf-stat__value--amber { color: #fbbf24; }
.ra-cf-stat__meta {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  margin-top: 0.45rem;
}

/* Risk & compliance grid */
.ra-rc {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.55rem;
}
@media (max-width: 1100px) { .ra-rc { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .ra-rc { grid-template-columns: repeat(2, 1fr); } }

.ra-rc-card {
  padding: 0.95rem 0.7rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  text-align: center;
  transition: all 0.25s ease;
  cursor: pointer;
}
.ra-rc-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
}
.ra-rc-card--alert { border-color: rgba(245,158,11,0.3); background: rgba(245,158,11,0.06); }
.ra-rc-card__icon { font-size: 1.3rem; margin-bottom: 0.35rem; }
.ra-rc-card__label {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 0.4rem;
}
.ra-rc-card__value {
  font-family: var(--ra-font);
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.ra-rc-card--alert .ra-rc-card__value { color: #fbbf24; }

/* Hint label */
.ra-hint {
  position: absolute;
  bottom: 12px; right: 18px;
  z-index: 20;
  font-family: var(--ra-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #93c5fd;
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.3);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  pointer-events: none;
  animation: ra-hintfloat 2.8s ease-in-out infinite;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.ra-hint::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #60a5fa;
  box-shadow: 0 0 8px #60a5fa;
}
@keyframes ra-hintfloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* Mobile */
@media (max-width: 780px) {
  .ra-sidebar { width: 64px; }
  .ra-sidebar:hover { width: 220px; }
  .ra-shell-wrap { padding: 1.25rem 1rem 1.5rem; }
  .ra-shell { padding: 1.25rem 1rem; border-radius: 22px; }
  .ra-page-head { padding: 1rem 1.25rem; }
}

/* ============================================================
   Accessibility — Reduced motion for demo browser
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .ra-details,
  .ra-kpi,
  .ra-cf-stat,
  .ra-rc-card,
  .card,
  .col,
  .step {
    animation: none !important;
    transition: none !important;
  }
}
