/* ==========================================================================
   Style Guide CSS — Pikseo Design System
   Bootstrap 5.3 companion stylesheet
   ========================================================================== */

/* ========== CSS Variables (Design Tokens) ========== */
:root {
  --primary-color: #632483;
  --secondary-color: #470a69;
  --text-color: #66616c;
  --success: #479d74;
  --danger: #e40000;
  --lightpink: #ecddec;
  --violet: #855e9b;
  --section-bg: #faf8fc;
  --section-border: #e4d8f0;
  --subtle-bg: #f0e6f8;
  --shadow-sm: 0 1px 2px rgba(99,36,131,0.04), 0 2px 8px rgba(99,36,131,0.03);
  --shadow-md: 0 2px 4px rgba(99,36,131,0.05), 0 8px 24px rgba(99,36,131,0.06);
  --shadow-lg: 0 4px 8px rgba(99,36,131,0.04), 0 16px 48px rgba(99,36,131,0.08);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

/* ========== Global ========== */
:focus {
  box-shadow: unset !important;
}

[id] {
  scroll-margin-top: 100px;
}

* {
  font-family: "Inter", sans-serif;
  transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* ========== Brand Color Utilities ========== */
.color-primary { color: var(--primary-color); }
.bg-violet { background-color: var(--violet); }
.bg-violet-subtle { background-color: var(--subtle-bg); }
.border-violet { border-color: var(--violet) !important; }
.text-violet-emphasis { color: #4a1472; }
.hr-violet { border-color: var(--violet) !important; opacity: 1; }
.bg-purple-subtle { background-color: var(--subtle-bg) !important; }
.text-purple { color: var(--primary-color) !important; }

/* ========== Navbar ========== */
.navbar-brand img {
  width: 172px;
  max-width: 172px;
}

.container { padding: 0 !important; }

/* ========== Buttons ========== */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, #7b35a8 100%);
  border: none;
  box-shadow: 0 2px 8px rgba(99,36,131,0.25);
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.1) 50%, transparent 60%);
  background-size: 250% 100%;
  background-position: 100% 0;
  transition: background-position 0.5s;
}
.btn-primary:hover::after {
  background-position: -50% 0;
}
.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #6a2b90 100%) !important;
  border: none !important;
  color: white;
  box-shadow: 0 4px 16px rgba(99,36,131,0.35);
  transform: translateY(-1px);
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:focus-visible {
  border: 2px solid var(--primary-color) !important;
  color: white;
  background-color: var(--primary-color) !important;
  box-shadow: 0 2px 8px rgba(99,36,131,0.2);
}

.btn {
  padding: 12px;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

/* ========== Sidebar ========== */
.p-aside {
  max-width: 200px;
  width: 100%;
  transition: width 0.3s ease;
  overflow: clip;
}
.p-aside.sticky-top {
  top: 105px !important;
  z-index: 1000;
  height: calc(100vh - 105px);
  overflow-y: auto;
}
.p-aside.sticky-top::-webkit-scrollbar { width: 0; }

.sidebar .accordion-button,
.sidebar .btn,
.sidebar .nav-link {
  padding: 8px 12px !important;
}
.sidebar a,
.sidebar .accordion-button {
  font-size: 14px;
}
.sidebar .nav-link {
  color: var(--text-color);
  font-weight: 600;
  border-radius: 0.375rem;
}
.sidebar .btn-active,
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  background-color: var(--primary-color);
  color: white !important;
}
.sidebar .btn-active.nav-link i { color: white !important; }
.sidebar .btn-active:hover {
  background-color: var(--secondary-color) !important;
  color: white;
}
.sidebar .nav-link:hover { color: var(--primary-color); }
.sidebar .accordion i,
.sidebar .nav-link i {
  color: var(--primary-color);
  transition: 0.15s;
}
.nav-link, .p-aside { transition: 0.6s; }

/* ========== Jumbotron / Hero ========== */
.p-jumbotron {
  min-height: 220px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #632483 0%, #3b1566 40%, #111139 100%);
  background-size: 200% 200%;
  animation: hero-gradient 8s ease infinite;
  color: white;
  position: relative;
  overflow: clip;
  box-shadow: 0 8px 32px rgba(99,36,131,0.2);
}
.p-jumbotron::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 60% at 70% 30%, rgba(133,94,155,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.p-jumbotron h1 {
  font-weight: 700;
  font-size: 42px;
  letter-spacing: -0.5px;
  position: relative;
}
.p-jumbotron .lead {
  font-size: 18px;
  opacity: 0.85;
  position: relative;
}

/* ========== Headings ========== */
h2 {
  color: var(--text-color);
  font-size: 30px;
  font-weight: 400;
}

/* ========== Sections (report cards) ========== */
section {
  border: none;
  border-radius: 0;
  padding: 0;
  background: transparent;
}
section > :last-child { margin-bottom: 0 !important; }

/* Card — nowy lekki styl */
.card-light {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid transparent;
  background-clip: padding-box;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s, transform 0.3s;
}
.card-light::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(145deg, rgba(99,36,131,0.12), rgba(99,36,131,0.03), transparent 70%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.card-light:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card-light h4 { font-size: 16px; }

/* Hero summary card */
.hero-summary {
  background: linear-gradient(135deg, #632483 0%, #3b1566 40%, #111139 100%);
  background-size: 200% 200%;
  animation: hero-gradient 8s ease infinite;
  border-radius: var(--radius-lg);
  color: white;
  padding: 36px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(99,36,131,0.25), 0 2px 8px rgba(17,17,57,0.15);
}
.hero-summary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 80% 20%, rgba(133,94,155,0.2) 0%, transparent 70%),
              radial-gradient(ellipse 40% 40% at 20% 80%, rgba(99,36,131,0.15) 0%, transparent 60%);
  pointer-events: none;
}
@keyframes hero-gradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero-summary .kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
  position: relative;
}
.hero-summary .kpi-item {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 18px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.hero-summary .kpi-item:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.22);
  transform: translateY(-2px);
}
.hero-summary .kpi-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.65;
  margin-bottom: 6px;
}
.hero-summary .kpi-value {
  font-family: 'JetBrains Mono', 'Inter', monospace;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
}
.hero-summary .kpi-value.kpi-value-sm {
  font-size: 16px;
  letter-spacing: 0;
  line-height: 1.35;
}
.hero-summary .kpi-sub {
  font-size: 12px;
  opacity: 0.55;
  margin-top: 2px;
}
.hero-summary .kpi-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.85);
  cursor: help;
  margin-left: 4px;
  vertical-align: middle;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1;
  transition: background 0.2s;
}
.hero-summary .kpi-help:hover {
  background: rgba(255,255,255,0.3);
}
@media (max-width: 767px) {
  .hero-summary .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .hero-summary { padding: 24px; }
  .hero-summary .kpi-value { font-size: 22px; }
}

/* ========== Interpretation ========== */
#interpretationSection {
  background: linear-gradient(135deg, #faf8fc 0%, #ffffff 50%, #faf8fc 100%);
  border-left: none;
  overflow: hidden;
}
#interpretationSection::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary-color), var(--violet));
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}
#interpretationSection::before {
  background: linear-gradient(145deg, rgba(99,36,131,0.04), transparent 50%);
}
.interpretation-text {
  font-size: 16px;
  line-height: 1.75;
  color: #3a3346;
}
.interpretation-text p {
  margin-bottom: 18px;
}
.interpretation-text p:last-child { margin-bottom: 0; }
.interpretation-text strong {
  color: var(--primary-color);
  font-weight: 600;
}

/* ========== Tables ========== */
.table thead th {
  background: linear-gradient(180deg, #faf8fc 0%, #f5f0f9 100%);
  padding: 11px 14px;
  color: #5a5063;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  text-align: center;
  white-space: normal;
  min-width: 60px;
  border-bottom: 2px solid rgba(99,36,131,0.08) !important;
}
.table thead th:first-child { text-align: left; }

.table tbody td {
  background-color: #ffffff;
  color: var(--text-color);
  padding: 11px 14px;
  text-align: center;
  white-space: nowrap;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  font-variant-numeric: tabular-nums;
}
.table tbody td:first-child {
  text-align: left;
  white-space: nowrap;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}

table {
  border-radius: var(--radius-md);
  overflow: clip;
  width: 100%;
}

.table-sortable thead th {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  position: relative;
  padding-right: 28px !important;
}
.table-sortable thead th::after {
  content: '\2195';
  position: absolute;
  right: 8px;
  opacity: 0.4;
  font-size: 12px;
}
.table-sortable thead th.sort-asc::after {
  content: '\2191';
  opacity: 1;
  color: var(--primary-color);
}
.table-sortable thead th.sort-desc::after {
  content: '\2193';
  opacity: 1;
  color: var(--primary-color);
}
.table-sortable thead th:hover::after { opacity: 0.7; }

/* ========== Analyses table — fit without horizontal scroll ========== */
#analysesTable { table-layout: fixed; width: 100%; }
#analysesTable col.col-id      { width: 52px; }
#analysesTable col.col-user    { width: 16%; }
#analysesTable col.col-group   { width: 18%; }
#analysesTable col.col-kw      { width: 22%; }
#analysesTable col.col-index   { width: 72px; }
#analysesTable col.col-level   { width: 88px; }
#analysesTable col.col-date    { width: 130px; }
#analysesTable col.col-action  { width: 52px; }

#analysesTable tbody td {
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
}
#analysesTable tbody td:nth-child(5),
#analysesTable tbody td:nth-child(6) {
  white-space: nowrap;
}

/* ========== Table scroll wrapper ========== */
.table-scroll-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -28px;
  padding: 0 28px;
  scrollbar-width: thin;
  scrollbar-color: rgba(99,36,131,0.12) transparent;
}
.table-scroll-wrap::-webkit-scrollbar { height: 4px; }
.table-scroll-wrap::-webkit-scrollbar-track { background: transparent; }
.table-scroll-wrap::-webkit-scrollbar-thumb { background: rgba(99,36,131,0.12); border-radius: 2px; }
.table-scroll-wrap::-webkit-scrollbar-thumb:hover { background: rgba(99,36,131,0.25); }
@media (max-width: 767px) {
  .table-scroll-wrap { margin: 0 -20px; padding: 0 20px; }
}

/* ========== Stats Grid (KPI Tiles) ========== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 0;
}
.stats-grid > div {
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  flex: none !important;
}
.stats-grid .flex-fill { width: 100%; }

@media (min-width: 480px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(5, 1fr); }
}

/* ========== Gauge Ring ========== */
.gauge-ring {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; color: #333;
}

/* ========== Budget Bar Chart (Timeline) ========== */
.budget-bars {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 4px;
  align-items: end;
  height: 120px;
}
.budget-bar-col {
  display: flex; flex-direction: column; align-items: center; height: 100%;
  justify-content: flex-end;
}
.budget-bar {
  width: 100%; border-radius: 6px 6px 0 0; min-height: 4px;
  transition: height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.budget-bar-label {
  font-size: 11px; font-weight: 700; margin-bottom: 2px; text-align: center;
  font-variant-numeric: tabular-nums;
}
.budget-bar-month {
  font-size: 11px; color: #94a3b8; margin-top: 4px; text-align: center;
  font-weight: 500;
}

/* ========== Calendar colored rows ========== */
.cal-row-up { background: rgba(71, 157, 116, 0.05) !important; }
.cal-row-up:hover { background: rgba(71, 157, 116, 0.10) !important; }
.cal-row-down { background: rgba(228, 0, 0, 0.04) !important; }
.cal-row-down:hover { background: rgba(228, 0, 0, 0.08) !important; }
#calendarTable tbody tr {
  transition: background 0.15s;
}
#calendarTable tbody tr:hover {
  background: rgba(99,36,131,0.03);
}
.cal-scale-bar {
  display: inline-block; height: 8px; border-radius: 4px; vertical-align: middle;
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.cal-scale-bar-up {
  background: linear-gradient(90deg, #479d74, #6bc49a) !important;
}
.cal-scale-bar-down {
  background: linear-gradient(90deg, #e40000, #f06060) !important;
}
/* Status pill z ikoną */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.status-pill-up {
  background: rgba(99,36,131,0.08);
  color: var(--primary-color);
}
.status-pill-down {
  background: rgba(228,0,0,0.07);
  color: #c00;
}
.status-pill-neutral {
  background: rgba(0,0,0,0.04);
  color: #94a3b8;
}
.status-pill i {
  font-size: 10px;
}

/* ========== CPC Card 2x2 ========== */
.cpc-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}

/* ========== Exec Summary Sections ========== */
.exec-section {
  display: flex; gap: 14px; align-items: flex-start; padding: 14px 0;
  border-bottom: 1px solid rgba(99,36,131,0.06);
}
.exec-section:last-child { border-bottom: none; padding-bottom: 0; }
.exec-icon {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* ========== Pagination ========== */
.pagination .page-item .page-link {
  border: unset;
  color: black;
  border-radius: 0.375rem;
  margin: 0 2px;
}
.pagination .page-item.active .page-link {
  background-color: var(--primary-color);
  color: white;
}
.page-link:hover { background-color: var(--lightpink); }

/* ========== Custom Scrollbar ========== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(99,36,131,0.15); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(99,36,131,0.3); }

/* ========== Loading Animation ========== */
.loading {
  position: relative;
  pointer-events: none;
}
.loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.8);
}

@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}
.tile-loading { animation: pulse-soft 2s ease-in-out infinite; }

/* ========== Toast Notifications ========== */
.toast-notification {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  padding: 14px 20px;
  background: rgba(17, 17, 57, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  animation: slide-in 0.3s ease-out;
  font-size: 13px;
  font-weight: 500;
}

@keyframes slide-in {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ========== Date Picker ========== */
input[type="date"] { appearance: none; -webkit-appearance: none; }
input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: 0.6; }
input[type="date"]::-webkit-calendar-picker-indicator:hover { opacity: 1; }

/* ========== Responsive ========== */
@media (max-width: 767px) {
  .navbar-brand img { width: 110px; max-width: 110px; }
  .p-jumbotron h1 { font-size: 30px; }
  .p-jumbotron .lead { font-size: 16px; }
  .p-jumbotron { min-height: 160px; }
  .p-aside { max-width: 100%; }
  .card-light { padding: 20px; }
}

@media (min-width: 576px) {
  .container, .container-sm { max-width: 100%; }
}

@media (min-width: 768px) {
  .p-aside { width: 100%; max-width: 200px; }
  .container, .container-md, .container-sm { max-width: 100%; }
}

@media (min-width: 1600px) {
  .container, .container-lg, .container-md,
  .container-sm, .container-xl, .container-xxl {
    max-width: 1600px;
  }
}

/* ========== Gate: blur na prawdziwej treści ========== */
.gated-blur {
  position: relative;
  overflow: hidden;
  max-height: 820px;
}
.gated-blur > * {
  filter: blur(6px);
  -webkit-filter: blur(6px);
  pointer-events: none;
  user-select: none;
}
.gated-blur > #gateCTA {
  filter: none !important;
  -webkit-filter: none !important;
  pointer-events: auto;
  user-select: auto;
}
.gated-blur::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40%;
  background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.6) 40%, #ffffff 100%);
  pointer-events: none;
  z-index: 5;
}
/* Gate CTA — absolutnie pozycjonowany na blurze */
.gate-bar {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  padding: 28px 32px;
  text-align: center;
  background: rgba(255,255,255,0.96);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-lg);
  width: calc(100% - 48px);
  max-width: 640px;
}
.gate-bar h4 {
  font-size: 20px;
  color: var(--primary-color);
}
.gate-bar-form {
  max-width: 600px;
}
.gate-bar-fields {
  display: flex;
  gap: 8px;
  align-items: center;
}
.gate-bar-fields .form-control {
  flex: 1;
  min-width: 0;
}
.gate-bar-fields .btn {
  padding: 10px 24px;
  flex-shrink: 0;
}
.gate-bar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.gate-bar-grid .form-control {
  min-width: 0;
}
.gate-bar .form-check {
  display: inline-flex !important;
  align-items: baseline;
  gap: 6px;
  padding-left: 0 !important;
  text-align: left;
}
.gate-bar .form-check .form-check-input {
  float: none !important;
  margin: 0 !important;
  flex-shrink: 0;
}
.gate-bar .gate-consent {
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px;
  text-align: left;
  font-size: 11px;
  line-height: 1.45;
  color: #66616c;
}
.gate-bar .gate-consent .form-check-input {
  margin-top: 3px !important;
}
.gate-bar .gate-consent .form-check-label {
  font-size: 11px;
  line-height: 1.45;
}
@media (max-width: 575px) {
  .gate-bar-fields {
    flex-direction: column;
  }
  .gate-bar-fields .btn {
    width: 100%;
  }
  .gate-bar-grid {
    grid-template-columns: 1fr;
  }
}

/* Success box po wysłaniu leada */
.gate-success {
  max-width: 560px;
  margin: 0 auto;
  padding: 40px 28px;
  background: linear-gradient(135deg, #faf8fc 0%, #f0e8f7 100%);
  border: 1px solid #e4d8f0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.gate-success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #632483 0%, #111139 100%);
  color: #fff;
  border-radius: 50%;
  font-size: 32px;
  box-shadow: 0 8px 24px rgba(99, 36, 131, 0.25);
}

/* ========== Staggered section fade-in ========== */
@keyframes section-fade-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
#resultsSection > .hero-summary,
#resultsSection > .card-light,
#resultsSection > #budgetBarsSection,
#resultsSection > #interpretationSection,
#gatedResultsSection > .card-light {
  animation: section-fade-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
#resultsSection > :nth-child(1) { animation-delay: 0s; }
#resultsSection > :nth-child(2) { animation-delay: 0.08s; }
#resultsSection > :nth-child(3) { animation-delay: 0.16s; }
#resultsSection > :nth-child(4) { animation-delay: 0.24s; }
#resultsSection > :nth-child(5) { animation-delay: 0.32s; }
#gatedResultsSection > :nth-child(1) { animation-delay: 0.36s; }
#gatedResultsSection > :nth-child(2) { animation-delay: 0.42s; }
#gatedResultsSection > :nth-child(3) { animation-delay: 0.48s; }
#gatedResultsSection > :nth-child(4) { animation-delay: 0.54s; }

/* ========== Navbar refinement ========== */
.sticky-top:has(nav) {
  z-index: 1040;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.85) !important;
  border-bottom: 1px solid rgba(99,36,131,0.06) !important;
}

/* ========== Body background ========== */
body {
  background: linear-gradient(180deg, #faf8fc 0%, #f5f0f9 30%, #ffffff 100%);
  min-height: 100vh;
}

/* ========== Print ========== */
@media print {
  .no-print { display: none !important; }
  .p-aside { display: none !important; }
  .p-jumbotron { min-height: 200px; }
}

/* ========== Accessibility ========== */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
