.po-dashboard {
  --dashboard-ink: #15231d;
  --dashboard-paper: #fffef9;
  --dashboard-canvas: #edf2e9;
  --dashboard-line: rgba(21, 35, 29, 0.15);
  color: var(--dashboard-ink);
  background:
    linear-gradient(rgba(21, 35, 29, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 35, 29, 0.035) 1px, transparent 1px), var(--dashboard-canvas);
  background-size: 32px 32px;
}

.po-dashboard-header {
  position: sticky;
  border-bottom: 1px solid var(--dashboard-ink);
  background: rgba(255, 254, 249, 0.96);
  box-shadow: 0 12px 35px -32px rgba(21, 35, 29, 0.8);
  backdrop-filter: none;
}

.po-dashboard-header::before {
  content: '';
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  height: 0.24rem;
  background: linear-gradient(90deg, #4cae50 0 42%, #e1493f 42% 68%, #5370ff 68% 88%, #efb92f 88%);
}

.po-dashboard-header > div {
  max-width: 88rem;
}

.po-dashboard-header [aria-label='Dashboard navigacija'] {
  gap: 0.15rem;
  padding: 0.25rem;
  border: 1px solid var(--dashboard-line);
  border-radius: 0.75rem;
  background: #f4f6ef;
}

.po-dashboard-nav-link {
  height: 2.35rem;
  border-radius: 0.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.po-dashboard-nav-link.bg-white\/80,
.po-dashboard-nav-link.is-active {
  color: var(--dashboard-ink);
  background: #cdea81;
  box-shadow: none;
}

/* Loyalty level: the badge under the name and the sidebar card. */
.po-dashboard-level-badge {
  display: inline-block;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.po-dashboard-level-card p {
  letter-spacing: -0.01em;
}

.po-dashboard #dashboard-content > div {
  max-width: 88rem;
  padding-top: clamp(1.75rem, 4vw, 3.5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.po-dashboard #dashboard-content h1 {
  color: var(--dashboard-ink);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.po-dashboard #dashboard-content h2 {
  color: var(--dashboard-ink);
  font-weight: 850;
  letter-spacing: -0.035em;
}

.po-dashboard #dashboard-content h3 {
  letter-spacing: -0.025em;
}

.po-dashboard .glass-solid,
.po-dashboard .glass-card,
.po-dashboard .content-surface {
  border: 1px solid var(--dashboard-line);
  border-radius: 1rem;
  background: var(--dashboard-paper);
  box-shadow: 0 16px 38px -36px rgba(21, 35, 29, 0.85);
  backdrop-filter: none;
}

.po-dashboard .po-dashboard-welcome {
  position: relative;
  min-height: 15rem;
  display: flex;
  align-items: flex-end;
  border: 0;
  border-radius: 1rem;
  border: 1px solid rgba(21, 35, 29, 0.22);
  color: var(--dashboard-ink);
  background: linear-gradient(112deg, rgba(255, 254, 249, 0.58), transparent 52%), #cdea81;
  box-shadow: 0 24px 48px -40px rgba(21, 35, 29, 0.82);
}

.po-dashboard .po-dashboard-welcome::after {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 0.45rem;
  background: linear-gradient(90deg, #4cae50 0 42%, #e1493f 42% 68%, #5370ff 68% 88%, #efb92f 88%);
}

.po-dashboard-welcome > .absolute {
  display: none;
}

.po-dashboard .po-dashboard-welcome h1 {
  max-width: 40rem;
  color: var(--dashboard-ink);
  font-size: clamp(2.2rem, 5vw, 4.4rem);
}

.po-dashboard .po-dashboard-welcome h1,
.po-dashboard .po-dashboard-welcome h1 span,
.po-dashboard .po-dashboard-welcome h1 svg {
  color: var(--dashboard-ink);
  -webkit-text-fill-color: currentColor;
}

.po-dashboard .po-dashboard-welcome .text-gradient {
  color: #2f6736;
  background: none;
  -webkit-text-fill-color: currentColor;
}

.po-dashboard .po-dashboard-welcome h1 .text-gradient,
.po-dashboard .po-dashboard-welcome h1 .text-gradient * {
  color: #2f6736;
  -webkit-text-fill-color: currentColor;
}

.po-dashboard .po-dashboard-welcome .text-muted-foreground {
  color: rgba(21, 35, 29, 0.7);
}

.po-dashboard .po-dashboard-welcome a {
  min-height: 2.8rem;
  border-radius: 0.55rem;
  background: var(--dashboard-ink);
  color: #fffef9;
  box-shadow: none;
}

.po-dashboard .po-dashboard-stat {
  position: relative;
  overflow: hidden;
  min-height: 6.8rem;
  border-radius: 0.8rem;
}

.po-dashboard .po-dashboard-stat::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 0.28rem;
  background: #5370ff;
}

.po-dashboard .po-dashboard-stat:nth-child(2)::before {
  background: #e1493f;
}

.po-dashboard .po-dashboard-stat:nth-child(3)::before {
  background: #efb92f;
}

.po-dashboard .po-dashboard-stat > div:first-child {
  border-radius: 0.55rem;
}

.po-dashboard #dashboard-content section > .flex:first-child {
  align-items: flex-end;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--dashboard-line);
}

.po-dashboard #dashboard-content input,
.po-dashboard #dashboard-content textarea,
.po-dashboard #dashboard-content [role='combobox'] {
  border-color: rgba(21, 35, 29, 0.22);
  border-radius: 0.55rem;
  background: #fffef9;
  box-shadow: none;
}

.po-dashboard #dashboard-content button,
.po-dashboard #dashboard-content a[class*='inline-flex'] {
  border-radius: 0.55rem;
}

.po-dashboard #dashboard-content table {
  overflow: hidden;
  border-radius: 0.75rem;
  background: var(--dashboard-paper);
}

.po-dashboard #dashboard-content thead {
  background: var(--dashboard-ink);
  color: #fffef9;
}

.po-dashboard #dashboard-content thead th {
  color: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.po-dashboard #dashboard-content tbody tr:hover {
  background: rgba(205, 234, 129, 0.16);
}

.po-dashboard .po-course-player {
  overflow: hidden;
  border: 1px solid var(--dashboard-line);
  border-radius: 0 0 0.85rem 0.85rem;
  background: var(--dashboard-paper);
}

.po-dashboard .po-course-player > div:first-child {
  background: #f8f8f2;
}

.po-dashboard .po-course-player aside {
  border-color: rgba(205, 234, 129, 0.18);
  color: #fffef9;
  background: var(--dashboard-ink);
}

.po-dashboard .po-course-player aside .text-muted-foreground {
  color: rgba(255, 254, 249, 0.55);
}

.po-dashboard .po-course-player aside button {
  border-radius: 0.45rem;
  color: rgba(255, 254, 249, 0.75);
}

.po-dashboard .po-course-player aside button[class*='bg-primary'] {
  border-color: rgba(205, 234, 129, 0.45);
  color: #15231d;
  background: #cdea81;
}

.po-dashboard .po-course-player aside a {
  border-color: rgba(255, 254, 249, 0.2);
  color: #fffef9;
  background: rgba(255, 254, 249, 0.06);
}

.po-dashboard-footer {
  justify-content: space-between;
  width: min(100% - 3rem, 88rem);
  margin: 0 auto 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--dashboard-line);
  color: rgba(21, 35, 29, 0.58);
  font-family: 'Fira Code', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.po-dashboard > nav[aria-label='Mobilioji navigacija'] {
  border-color: var(--dashboard-ink);
  background: rgba(255, 254, 249, 0.97);
  backdrop-filter: none;
}

@media (max-width: 1023px) {
  .po-dashboard-header {
    position: sticky;
  }

  .po-dashboard-header > div > div {
    height: 4.25rem;
  }

  .po-dashboard-header .lg\:hidden.border-t {
    border-color: var(--dashboard-ink);
    background: var(--dashboard-paper);
  }

  .po-dashboard #dashboard-content > div {
    padding-inline: 1rem;
    padding-top: 1.25rem;
  }

  .po-dashboard .po-dashboard-welcome {
    min-height: 13rem;
    padding: 1.4rem;
  }

  .po-dashboard .po-dashboard-welcome h1 {
    font-size: 2.35rem;
  }

  .po-dashboard .po-dashboard-stat {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .po-dashboard *,
  .po-dashboard *::before,
  .po-dashboard *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
