:root {
  --emr-ink: #111827;
  --emr-muted: #64748b;
  --emr-line: rgba(15, 23, 42, .10);
  --emr-soft: #f7fafc;
  --emr-blue: #2563eb;
  --emr-cyan: #0891b2;
  --emr-emerald: #059669;
  --emr-amber: #d97706;
  --emr-shadow: 0 18px 46px rgba(15, 23, 42, .10);
  --emr-shadow-lg: 0 30px 80px rgba(15, 23, 42, .16);
}

body.elevate-app-body,
body.elevate-public-body {
  background:
    linear-gradient(180deg, rgba(248, 250, 252, .98), rgba(241, 245, 249, .92) 46%, #ffffff) !important;
  color: var(--emr-ink);
}

.card,
.elevate-glass-card,
.metric-card-pro,
.elevate-admin-menu-card,
.elevate-admin-action {
  border-radius: 18px !important;
}

.card {
  border: 1px solid var(--emr-line) !important;
  box-shadow: 0 14px 38px rgba(15, 23, 42, .06) !important;
}

.card-header {
  background: rgba(255, 255, 255, .88) !important;
  border-bottom: 1px solid rgba(15, 23, 42, .08) !important;
}

.btn {
  border-radius: 12px !important;
  font-weight: 800 !important;
}

.elevate-public-body .ei-hero {
  padding: clamp(52px, 7vw, 92px) 0 clamp(44px, 5vw, 72px) !important;
}

.elevate-public-body .ei-hero::before {
  inset: 20px max(14px, calc((100vw - 1200px) / 2)) !important;
  border-radius: 30px !important;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, .96), rgba(30, 64, 175, .94) 46%, rgba(8, 145, 178, .92)) !important;
  box-shadow: var(--emr-shadow-lg) !important;
}

.elevate-public-body .ei-hero::after {
  display: none !important;
}

.elevate-public-body .ei-hero-title {
  max-width: 860px;
  letter-spacing: 0 !important;
  text-wrap: balance;
}

.elevate-public-body .ei-hero-subtitle {
  max-width: 780px;
  color: rgba(255, 255, 255, .86) !important;
}

.elevate-public-body .ei-preview-card {
  border-radius: 24px !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .08)) !important;
  border: 1px solid rgba(255, 255, 255, .28) !important;
  box-shadow: 0 24px 64px rgba(2, 6, 23, .24) !important;
  backdrop-filter: blur(18px);
}

.elevate-public-body .ei-mini-stat,
.elevate-public-body .ei-preview-topbar {
  border-radius: 16px !important;
}

.elevate-public-body .ei-card,
.elevate-public-body .elevate-promo-card,
.elevate-public-body .elevate-step-card {
  border-radius: 18px !important;
  border: 1px solid rgba(15, 23, 42, .09) !important;
  box-shadow: var(--emr-shadow) !important;
}

.elevate-dashboard-hero.emr-hero-panel,
.elevate-admin-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, .09);
  border-radius: 24px;
  padding: clamp(22px, 3vw, 34px);
  background:
    linear-gradient(135deg, #ffffff 0%, #eff6ff 48%, #ecfeff 100%);
  box-shadow: var(--emr-shadow);
}

.elevate-dashboard-hero.emr-hero-panel::before,
.elevate-admin-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(37, 99, 235, .10), transparent 34%, rgba(5, 150, 105, .09));
}

.elevate-dashboard-hero.emr-hero-panel > *,
.elevate-admin-hero > * {
  position: relative;
  z-index: 1;
}

.emr-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, .8fr);
  gap: 24px;
  align-items: stretch;
}

.emr-hero-copy {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  justify-content: center;
}

.emr-hero-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  border-radius: 20px;
  padding: 22px;
  color: #ffffff;
  background: linear-gradient(145deg, #0f172a, #1d4ed8 55%, #0891b2);
  box-shadow: 0 22px 54px rgba(29, 78, 216, .22);
}

.emr-hero-card * {
  color: inherit;
}

.emr-hero-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.emr-status-pill,
.emr-soft-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  font-weight: 850;
}

.emr-status-pill {
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .24);
}

.emr-soft-pill {
  color: #1d4ed8;
  background: rgba(219, 234, 254, .84);
  border: 1px solid rgba(147, 197, 253, .72);
}

.emr-hero-metric {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.emr-hero-metric div {
  min-height: 74px;
  border-radius: 16px;
  padding: 13px;
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .18);
}

.emr-hero-metric strong {
  display: block;
  font-size: 24px;
  line-height: 1;
  font-weight: 950;
}

.emr-hero-metric span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, .76);
  font-size: 12px;
  line-height: 1.35;
}

.elevate-dashboard-hero .page-title,
.elevate-admin-hero .page-title {
  color: var(--emr-ink) !important;
  letter-spacing: 0 !important;
  text-wrap: balance;
}

.elevate-dashboard-hero .page-subtitle,
.elevate-admin-hero .page-subtitle {
  color: var(--emr-muted) !important;
}

.cakti-metric-grid {
  align-items: stretch;
}

.cakti-metric-grid .metric-card-pro {
  min-height: 172px !important;
  border-radius: 18px !important;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .12) !important;
}

#dashboardAnalyticsSummary .card-body p {
  display: none;
}

#dashboardAnalyticsSummary .border,
.card .border.rounded-4 {
  border-color: rgba(15, 23, 42, .08) !important;
  background: #f8fafc !important;
}

.modern-table-wrap {
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, .08);
}

.modern-data-table thead th {
  background: #f8fafc !important;
  color: #334155 !important;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.modern-data-table tbody tr:hover {
  background: rgba(37, 99, 235, .04);
}

.elevate-result-download-actions {
  padding: 16px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 8% 0%, rgba(56, 189, 248, .24), transparent 34%),
    radial-gradient(circle at 92% 0%, rgba(250, 204, 21, .22), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(240, 249, 255, .96) 52%, rgba(255, 251, 235, .90));
  border: 1px solid rgba(14, 165, 233, .22);
  box-shadow: 0 18px 48px rgba(15, 23, 42, .10), inset 0 1px 0 rgba(255, 255, 255, .82);
}

.result-panel .text-warning,
.publication-recommendation-card .text-warning,
.readiness-ring-card .text-warning,
.elevate-result-download-actions .text-warning {
  color: #0f172a !important;
}

.result-panel .bg-warning,
.publication-recommendation-card .bg-warning,
.readiness-ring-card .bg-warning {
  color: #0f172a !important;
}

.elevate-result-download-actions .btn {
  border-width: 1px !important;
  min-height: 46px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 999px !important;
  font-weight: 800 !important;
  letter-spacing: .01em;
  padding: .68rem 1.05rem !important;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.elevate-result-download-actions .btn:hover {
  transform: translateY(-1px);
}

.elevate-download-result-btn {
  color: #ffffff !important;
  background: linear-gradient(135deg, #075985 0%, #0284c7 52%, #38bdf8 100%) !important;
  border-color: rgba(56, 189, 248, .72) !important;
  box-shadow: 0 12px 26px rgba(2, 132, 199, .18) !important;
}

.elevate-download-result-btn:hover {
  color: #0f172a !important;
  background: linear-gradient(135deg, #38bdf8 0%, #ffffff 52%, #facc15 100%) !important;
}

.elevate-download-report-btn {
  color: #ffffff !important;
  background: linear-gradient(135deg, #075985 0%, #0284c7 56%, #38bdf8 100%) !important;
  border-color: rgba(56, 189, 248, .72) !important;
  box-shadow: 0 13px 28px rgba(2, 132, 199, .22) !important;
}

.elevate-download-report-btn:hover {
  color: #0f172a !important;
  background: linear-gradient(135deg, #38bdf8 0%, #ffffff 52%, #facc15 100%) !important;
}

.elevate-download-premium-btn {
  color: #0f172a !important;
  background: linear-gradient(135deg, #facc15 0%, #ffffff 46%, #38bdf8 100%) !important;
  border-color: rgba(250, 204, 21, .72) !important;
  box-shadow: 0 13px 30px rgba(217, 119, 6, .16), 0 13px 30px rgba(56, 189, 248, .13) !important;
}

.elevate-download-premium-btn:hover {
  color: #0f172a !important;
  filter: saturate(1.06) brightness(1.02);
}

.elevate-result-download-actions .btn-outline-secondary:not(.elevate-download-report-btn),
.elevate-result-download-actions .btn-outline-info,
.elevate-result-download-actions .btn-outline-warning,
.elevate-result-download-actions .btn-outline-dark:not(.elevate-download-premium-btn) {
  color: #0f172a !important;
  background: rgba(255, 255, 255, .82) !important;
  border-color: rgba(148, 163, 184, .34) !important;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .07) !important;
}

.scopus-status-card {
  position: relative;
  overflow: hidden;
  padding: 18px 20px !important;
  color: #0f172a !important;
  background:
    radial-gradient(circle at 7% 0%, rgba(56, 189, 248, .18), transparent 34%),
    radial-gradient(circle at 96% 0%, rgba(250, 204, 21, .20), transparent 32%),
    linear-gradient(135deg, #ffffff 0%, #f8fbff 46%, #e0f2fe 100%) !important;
  border: 1px solid rgba(14, 165, 233, .22) !important;
  box-shadow: 0 16px 42px rgba(15, 23, 42, .09), inset 0 1px 0 rgba(255,255,255,.78) !important;
}

.scopus-status-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255,255,255,.72), transparent 42%, rgba(250,204,21,.14));
}

.scopus-status-card > * {
  position: relative;
  z-index: 1;
}

.scopus-status-card .fw-bold {
  color: #0f172a !important;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.2;
  letter-spacing: 0;
}

.scopus-status-card .small {
  display: block;
  margin-top: 6px;
  color: #1e293b !important;
  font-size: 14px;
  line-height: 1.65;
  font-weight: 750;
}

.scopus-status-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #0f172a !important;
  background: linear-gradient(135deg, #38bdf8 0%, #ffffff 48%, #facc15 100%) !important;
  box-shadow: 0 12px 26px rgba(14, 165, 233, .16), 0 12px 26px rgba(250, 204, 21, .13);
}

.elevate-admin-metric-hero-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

.elevate-admin-metric-hero-card {
  min-height: 148px !important;
  border-radius: 18px !important;
  box-shadow: 0 16px 42px rgba(15, 23, 42, .13) !important;
}

.elevate-admin-metric-value {
  font-size: clamp(26px, 2.8vw, 36px) !important;
  letter-spacing: 0 !important;
}

.elevate-admin-action,
.elevate-admin-menu-card {
  border: 1px solid rgba(15, 23, 42, .08) !important;
  background: #ffffff !important;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .06) !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.elevate-admin-action:hover,
.elevate-admin-menu-card:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, .22) !important;
  box-shadow: 0 18px 42px rgba(37, 99, 235, .10) !important;
}

.elevate-admin-menu-grid {
  gap: 14px !important;
}

@media (max-width: 1200px) {
  .elevate-admin-metric-hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 992px) {
  .emr-hero-grid {
    grid-template-columns: 1fr;
  }

  .emr-hero-copy,
  .emr-hero-card {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .elevate-public-body .ei-hero::before {
    inset: 8px !important;
    border-radius: 22px !important;
  }

  .elevate-dashboard-hero.emr-hero-panel,
  .elevate-admin-hero {
    border-radius: 20px;
    padding: 20px;
  }

  .emr-hero-metric,
  .elevate-admin-metric-hero-grid {
    grid-template-columns: 1fr !important;
  }
}
