/* ========================================
   BIVA V2 — PREMIUM CUSTOMER DASHBOARD
======================================== */


/* ========================================
   DASHBOARD PAGE RESET
======================================== */

body:has(.dashboard-shell) {
  overflow-x: hidden;
}

body:has(.dashboard-shell)
.portal-shell {
  width: 100%;
  min-height: 100vh;

  display: block;

  padding: 0;
}

body:has(.dashboard-shell)
.portal-card {
  width: 100%;
  max-width: none;
  min-width: 0;
  min-height: 100vh;

  margin: 0;
  padding: 0;

  border: 0;
  border-radius: 0;

  background: transparent;

  box-shadow: none;
  backdrop-filter: none;
}


/* ========================================
   DASHBOARD ROOT
======================================== */

.dashboard-shell {
  width: 100%;
  min-width: 0;
  min-height: 100vh;

  color:
    var(--biva-text);

  background:
    radial-gradient(
      circle at 8% 0%,
      rgba(53, 112, 243, 0.1),
      transparent 28%
    ),
    radial-gradient(
      circle at 96% 8%,
      rgba(255, 200, 46, 0.09),
      transparent 25%
    ),
    linear-gradient(
      180deg,
      #fbfcff 0%,
      var(--biva-page-bg) 100%
    );
}

.dashboard-container {
  width: 100%;
  max-width: none;
  min-width: 0;

  margin: 0;
  padding-bottom:
    clamp(40px, 6vw, 80px);
}


/* ========================================
   SHARED DASHBOARD SURFACE
======================================== */

.dashboard-surface {
  width: 100%;
  min-width: 0;

  border:
    1px solid var(--biva-line);

  border-radius:
    var(--biva-radius-xl);

  background:
    rgba(255, 255, 255, 0.94);

  box-shadow:
    var(--biva-shadow-sm);

  overflow: hidden;
}


/* ========================================
   TOP NAVIGATION
======================================== */

.dashboard-nav {
  position: sticky;
  top: 0;

  z-index: 1000;

  width: 100%;

  padding:
    13px
    clamp(18px, 5vw, 78px);

  display: grid;

  grid-template-columns:
    auto minmax(0, 1fr) auto;

  align-items: center;

  gap: 28px;

  border-bottom:
    1px solid rgba(15, 23, 42, 0.08);

  background:
    rgba(255, 255, 255, 0.91);

  box-shadow:
    0 8px 28px
    rgba(15, 23, 42, 0.05);

  backdrop-filter:
    blur(18px);

  -webkit-backdrop-filter:
    blur(18px);
}


/* Brand */

.dashboard-nav__brand {
  display: inline-flex;
  align-items: center;

  gap: 11px;
}

.dashboard-nav__brand-mark {
  width: 44px;
  height: 44px;

  flex: 0 0 44px;

  display: grid;
  place-items: center;

  border-radius: 14px;

  color: #ffffff;

  background:
    linear-gradient(
      145deg,
      var(--biva-black),
      var(--biva-blue-700)
    );

  box-shadow:
    0 12px 26px
    rgba(36, 87, 230, 0.22);

  font-size: 1.08rem;
  font-weight: 900;
}

.dashboard-nav__brand-copy {
  display: grid;

  gap: 1px;
}

.dashboard-nav__brand-copy strong {
  color:
    var(--biva-ink);

  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.1;
}

.dashboard-nav__brand-copy span {
  color:
    var(--biva-blue-600);

  font-size: 0.68rem;
  font-weight: 800;
}


/* Platform context */

.dashboard-nav__context {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 8px;

  color:
    var(--biva-muted);

  font-size: 0.75rem;
  font-weight: 750;
}

.dashboard-nav__context-dot {
  width: 8px;
  height: 8px;

  border-radius: 50%;

  background:
    var(--biva-success);

  box-shadow:
    0 0 0 5px
    rgba(7, 148, 85, 0.1);
}


/* Account area */

.dashboard-nav__account {
  display: flex;
  align-items: center;

  gap: 10px;
}

.dashboard-nav__icon-btn {
  position: relative;

  width: 42px;
  height: 42px;

  flex: 0 0 42px;

  display: grid;
  place-items: center;

  border:
    1px solid var(--biva-line);

  border-radius: 13px;

  color:
    var(--biva-text);

  background:
    #ffffff;

  cursor: pointer;

  transition:
    color 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease;
}

.dashboard-nav__icon-btn:hover {
  color:
    var(--biva-blue-700);

  border-color:
    rgba(53, 112, 243, 0.22);

  background:
    var(--biva-blue-50);

  transform:
    translateY(-1px);
}

.dashboard-nav__icon-btn svg {
  width: 19px;
  height: 19px;

  fill: none;

  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-nav__notification-dot {
  position: absolute;

  width: 8px;
  height: 8px;

  top: 8px;
  right: 8px;

  border:
    2px solid #ffffff;

  border-radius: 50%;

  background:
    var(--biva-yellow-500);
}


/* User summary */

.dashboard-nav__user {
  min-width: 0;

  display: flex;
  align-items: center;

  gap: 10px;
}

.dashboard-nav__avatar {
  width: 42px;
  height: 42px;

  flex: 0 0 42px;

  display: grid;
  place-items: center;

  border-radius: 14px;

  color:
    var(--biva-blue-700);

  background:
    var(--biva-blue-50);

  font-size: 0.78rem;
  font-weight: 900;
}

.dashboard-nav__user-copy {
  min-width: 0;

  display: grid;

  gap: 1px;
}

.dashboard-nav__user-copy strong {
  max-width: 190px;

  overflow: hidden;

  color:
    var(--biva-ink);

  font-size: 0.78rem;
  font-weight: 850;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-nav__user-copy span {
  max-width: 190px;

  overflow: hidden;

  color:
    var(--biva-muted);

  font-size: 0.64rem;

  text-overflow: ellipsis;
  white-space: nowrap;
}


/* ========================================
   ACCOUNT DROPDOWN
======================================== */

.dashboard-nav__menu {
  position: relative;
}

.dashboard-nav__dropdown {
  position: absolute;

  top: calc(100% + 12px);
  right: 0;

  width: min(300px, calc(100vw - 28px));

  padding: 10px;

  border:
    1px solid var(--biva-line);

  border-radius:
    var(--biva-radius-lg);

  background: #ffffff;

  box-shadow:
    0 24px 60px
    rgba(15, 23, 42, 0.18);

  overflow: hidden;

  display: none;

  z-index: 1200;
}

.dashboard-nav__dropdown.show {
  display: block;
}

.dashboard-nav__dropdown-profile {
  padding: 12px;

  display: flex;
  align-items: center;

  gap: 11px;

  border-radius:
    var(--biva-radius-md);

  background:
    var(--biva-surface-soft);
}

.dashboard-nav__dropdown-profile > span {
  width: 42px;
  height: 42px;

  flex: 0 0 42px;

  display: grid;
  place-items: center;

  border-radius: 13px;

  color: #ffffff;

  background:
    linear-gradient(
      145deg,
      var(--biva-black),
      var(--biva-blue-700)
    );

  font-size: 0.77rem;
  font-weight: 900;
}

.dashboard-nav__dropdown-profile div {
  min-width: 0;

  display: grid;

  gap: 2px;
}

.dashboard-nav__dropdown-profile strong {
  overflow: hidden;

  color:
    var(--biva-ink);

  font-size: 0.78rem;
  font-weight: 850;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-nav__dropdown-profile small {
  overflow: hidden;

  color:
    var(--biva-muted);

  font-size: 0.65rem;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-nav__dropdown-action {
  width: 100%;

  margin-top: 8px;
  padding: 12px 13px;

  display: flex;
  align-items: center;

  gap: 10px;

  border: 0;
  border-radius: 13px;

  color:
    var(--biva-text);

  background: transparent;

  font: inherit;
  font-size: 0.77rem;
  font-weight: 800;

  cursor: pointer;

  text-align: left;
}

.dashboard-nav__dropdown-action:hover {
  background:
    var(--biva-surface-soft);
}

.dashboard-nav__dropdown-action.is-danger {
  color:
    var(--biva-danger);
}

.dashboard-nav__dropdown-action.is-danger:hover {
  background:
    var(--biva-danger-soft);
}

.dashboard-nav__dropdown-action svg {
  width: 18px;
  height: 18px;

  fill: none;

  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* ========================================
   DASHBOARD HERO WRAPPER
======================================== */

.dashboard-container
> .dashboard-surface:first-of-type {
  width:
    calc(100% - clamp(36px, 10vw, 156px));

  margin:
    clamp(28px, 4vw, 58px)
    auto 0;
}


/* ========================================
   DASHBOARD HERO
======================================== */

.dashboard-hero {
  position: relative;

  min-height: 310px;

  padding:
    clamp(30px, 4vw, 54px);

  display: grid;

  grid-template-columns:
    minmax(0, 1.15fr)
    minmax(340px, 0.85fr);

  align-items: center;

  gap:
    clamp(34px, 5vw, 72px);

  color: #ffffff;

  background:
    radial-gradient(
      circle at 90% 5%,
      rgba(53, 112, 243, 0.43),
      transparent 35%
    ),
    radial-gradient(
      circle at 5% 100%,
      rgba(255, 200, 46, 0.1),
      transparent 31%
    ),
    linear-gradient(
      145deg,
      var(--biva-black),
      var(--biva-black-soft) 56%,
      #173675
    );

  overflow: hidden;
}

.dashboard-hero::before {
  content: "";

  position: absolute;
  inset: 0 0 auto 0;

  height: 4px;

  background:
    linear-gradient(
      90deg,
      var(--biva-blue-500),
      var(--biva-yellow-400),
      transparent 88%
    );
}

.dashboard-hero::after {
  content: "";

  position: absolute;

  width: 300px;
  height: 300px;

  right: -125px;
  bottom: -210px;

  border:
    1px solid
    rgba(255, 255, 255, 0.06);

  border-radius: 50%;

  box-shadow:
    0 0 0 54px
    rgba(255, 255, 255, 0.025),

    0 0 0 108px
    rgba(255, 255, 255, 0.014);

  pointer-events: none;
}

.dashboard-hero > * {
  position: relative;
  z-index: 1;
}


/* Hero left */

.dashboard-hero__badge {
  width: fit-content;

  margin-bottom: 18px;
  padding: 7px 11px;

  display: inline-flex;
  align-items: center;

  gap: 8px;

  border:
    1px solid
    rgba(255, 255, 255, 0.12);

  border-radius: 999px;

  color:
    var(--biva-yellow-400);

  background:
    rgba(255, 255, 255, 0.06);

  font-size: 0.69rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dashboard-hero__badge svg {
  width: 15px;
  height: 15px;

  fill: none;

  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-hero h1 {
  max-width: 820px;

  margin: 0;

  color: #ffffff;

  font-size:
    clamp(2.6rem, 5vw, 5.4rem);

  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.dashboard-hero__left > p {
  max-width: 720px;

  margin: 20px 0 0;

  color:
    rgba(255, 255, 255, 0.67);

  font-size:
    clamp(0.92rem, 1.25vw, 1.05rem);

  line-height: 1.7;
}


/* Hero mini features */

.dashboard-hero__quick {
  margin-top: 28px;

  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 11px;
}

.dashboard-hero__quick > div {
  min-width: 0;

  padding: 13px;

  border:
    1px solid
    rgba(255, 255, 255, 0.08);

  border-radius:
    var(--biva-radius-md);

  background:
    rgba(255, 255, 255, 0.055);
}

.dashboard-hero__quick strong {
  display: block;

  color: #ffffff;

  font-size: 0.76rem;
  font-weight: 850;
}

.dashboard-hero__quick span {
  display: block;

  margin-top: 3px;

  color:
    rgba(255, 255, 255, 0.52);

  font-size: 0.64rem;
  line-height: 1.4;
}


/* Hero right */

.dashboard-hero__right {
  min-width: 0;

  padding:
    clamp(20px, 2.5vw, 30px);

  border:
    1px solid
    rgba(255, 255, 255, 0.09);

  border-radius:
    var(--biva-radius-xl);

  background:
    rgba(255, 255, 255, 0.055);

  backdrop-filter:
    blur(10px);
}

.dashboard-hero__status {
  display: inline-flex;
  align-items: center;

  gap: 8px;

  color:
    #dcfbed;

  font-size: 0.7rem;
  font-weight: 800;
}

.dashboard-live-dot {
  width: 8px;
  height: 8px;

  border-radius: 50%;

  background:
    #4bdd9d;

  box-shadow:
    0 0 0 5px
    rgba(75, 221, 157, 0.11);
}

.dashboard-hero__summary {
  margin-top: 22px;

  display: grid;

  gap: 10px;
}

.dashboard-hero__summary > div {
  padding: 14px;

  border:
    1px solid
    rgba(255, 255, 255, 0.08);

  border-radius:
    var(--biva-radius-md);

  background:
    rgba(255, 255, 255, 0.055);
}

.dashboard-hero__summary span {
  display: block;

  margin-bottom: 3px;

  color:
    rgba(255, 255, 255, 0.5);

  font-size: 0.65rem;
}

.dashboard-hero__summary strong {
  color: #ffffff;

  font-size: 0.83rem;
  font-weight: 820;
}

.dashboard-hero__actions {
  margin-top: 16px;

  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 10px;
}

.dashboard-hero__actions .btn {
  width: 100%;
}

.dashboard-hero__actions svg {
  width: 17px;
  height: 17px;

  fill: none;

  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* ========================================
   SECTION HEADINGS
======================================== */

.dashboard-section-heading {
  width:
    calc(100% - clamp(36px, 10vw, 156px));

  margin:
    clamp(48px, 6vw, 78px)
    auto 24px;

  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(260px, 0.65fr);

  align-items: end;

  gap: 34px;
}

.dashboard-section-heading__kicker {
  display: block;

  margin-bottom: 7px;

  color:
    var(--biva-blue-600);

  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dashboard-section-heading h2 {
  margin: 0;

  color:
    var(--biva-ink);

  font-size:
    clamp(1.9rem, 3vw, 3.1rem);

  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.055em;
}

.dashboard-section-heading > p {
  margin: 0;

  color:
    var(--biva-muted);

  font-size: 0.84rem;
  line-height: 1.6;
}


/* ========================================
   PRODUCT GRID
======================================== */

.platform-products {
  width:
    calc(100% - clamp(36px, 10vw, 156px));

  margin: 0 auto;

  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap:
    clamp(18px, 2.5vw, 30px);
}

.platform-products
> .dashboard-surface {
  height: 100%;
}


/* Three products for admin users */

.platform-products:
has(
  > .dashboard-surface:nth-child(3)
) {
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
}


/* ========================================
   PRODUCT CARDS
======================================== */

.dashboard-product {
  position: relative;

  min-height: 430px;

  padding:
    clamp(24px, 3vw, 34px);

  display: flex;
  flex-direction: column;

  overflow: hidden;
}

.dashboard-product::before {
  content: "";

  position: absolute;
  inset: 0 0 auto 0;

  height: 4px;
}

.dashboard-product--connect::before {
  background:
    linear-gradient(
      90deg,
      var(--biva-yellow-400),
      var(--biva-yellow-600),
      var(--biva-black)
    );
}

.dashboard-product--talent::before {
  background:
    linear-gradient(
      90deg,
      var(--biva-black),
      var(--biva-blue-600),
      var(--biva-blue-400)
    );
}

.dashboard-product--operations::before {
  background:
    linear-gradient(
      90deg,
      var(--biva-black),
      #6549d6,
      var(--biva-blue-500)
    );
}

.dashboard-product__top {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 15px;
}

.dashboard-product__icon {
  width: 54px;
  height: 54px;

  flex: 0 0 54px;

  display: grid;
  place-items: center;

  border-radius: 17px;
}

.dashboard-product--connect
.dashboard-product__icon {
  color:
    var(--biva-black);

  background:
    var(--biva-yellow-400);
}

.dashboard-product--talent
.dashboard-product__icon {
  color: #ffffff;

  background:
    linear-gradient(
      145deg,
      var(--biva-black),
      var(--biva-blue-700)
    );
}

.dashboard-product--operations
.dashboard-product__icon {
  color: #ffffff;

  background:
    linear-gradient(
      145deg,
      #161127,
      #6549d6
    );
}

.dashboard-product__icon svg {
  width: 26px;
  height: 26px;

  fill: none;

  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* Product badges */

.dashboard-product__badge {
  min-height: 30px;

  padding: 5px 10px;

  display: inline-flex;
  align-items: center;

  gap: 7px;

  border:
    1px solid transparent;

  border-radius: 999px;

  font-size: 0.66rem;
  font-weight: 850;
  text-transform: capitalize;
}

.dashboard-product__badge-dot {
  width: 7px;
  height: 7px;

  border-radius: 50%;
}

.dashboard-product__badge.is-success {
  color:
    var(--biva-success);

  border-color:
    rgba(7, 148, 85, 0.13);

  background:
    var(--biva-success-soft);
}

.dashboard-product__badge.is-success
.dashboard-product__badge-dot {
  background:
    var(--biva-success);
}

.dashboard-product__badge.is-muted {
  color:
    var(--biva-muted);

  border-color:
    var(--biva-line);

  background:
    var(--biva-surface-muted);
}

.dashboard-product__badge.is-muted
.dashboard-product__badge-dot {
  background:
    var(--biva-subtle);
}

.dashboard-product__badge.is-gold {
  color:
    #805800;

  border-color:
    rgba(242, 183, 5, 0.2);

  background:
    var(--biva-yellow-50);
}

.dashboard-product__badge.is-gold
.dashboard-product__badge-dot {
  background:
    var(--biva-yellow-500);
}

.dashboard-product__badge.is-blue {
  color:
    var(--biva-blue-700);

  border-color:
    rgba(53, 112, 243, 0.15);

  background:
    var(--biva-blue-50);
}

.dashboard-product__badge.is-blue
.dashboard-product__badge-dot {
  background:
    var(--biva-blue-500);
}

.dashboard-product__badge.is-neutral {
  color:
    var(--biva-text);

  border-color:
    var(--biva-line);

  background:
    var(--biva-surface-soft);
}

.dashboard-product__badge.is-neutral
.dashboard-product__badge-dot {
  background:
    var(--biva-blue-500);
}


/* Product content */

.dashboard-product__content {
  margin-top: 29px;
}

.dashboard-product__label {
  display: block;

  margin-bottom: 8px;

  color:
    var(--biva-blue-600);

  font-size: 0.69rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dashboard-product__content h2 {
  margin: 0;

  color:
    var(--biva-ink);

  font-size:
    clamp(1.7rem, 2.7vw, 2.65rem);

  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
}

.dashboard-product__content p {
  margin: 14px 0 0;

  color:
    var(--biva-muted);

  font-size: 0.86rem;
  line-height: 1.65;
}


/* Product metric */

.dashboard-product__metric {
  margin-top: 24px;
  padding: 14px;

  display: flex;
  align-items: center;

  gap: 11px;

  border:
    1px solid var(--biva-line);

  border-radius:
    var(--biva-radius-md);

  background:
    var(--biva-surface-soft);
}

.dashboard-product__metric-icon {
  width: 36px;
  height: 36px;

  flex: 0 0 36px;

  display: grid;
  place-items: center;

  border-radius: 12px;

  color:
    var(--biva-blue-700);

  background:
    var(--biva-blue-50);
}

.dashboard-product__metric-icon svg {
  width: 18px;
  height: 18px;

  fill: none;

  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-product__metric > div {
  min-width: 0;
}

.dashboard-product__metric span {
  display: block;

  margin-bottom: 2px;

  color:
    var(--biva-muted);

  font-size: 0.63rem;
}

.dashboard-product__metric strong {
  display: block;

  overflow-wrap: anywhere;

  color:
    var(--biva-ink);

  font-size: 0.78rem;
  font-weight: 820;
}

.dashboard-product__button {
  width: 100%;

  margin-top: auto;

  display: inline-flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;
}

.dashboard-product__button svg {
  width: 18px;
  height: 18px;

  fill: none;

  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* ========================================
   STATISTICS GRID
======================================== */

.stats-grid {
  width:
    calc(100% - clamp(36px, 10vw, 156px));

  margin: 0 auto;

  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 16px;
}

.stats-grid
> .dashboard-surface {
  height: 100%;
}

.dashboard-stat {
  min-height: 180px;

  padding: 21px;

  display: flex;
  flex-direction: column;

  justify-content: space-between;
}

.dashboard-stat__top {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;
}

.dashboard-stat__icon {
  width: 44px;
  height: 44px;

  display: grid;
  place-items: center;

  border-radius: 14px;

  color:
    var(--biva-blue-700);

  background:
    var(--biva-blue-50);
}

.dashboard-stat.is-data
.dashboard-stat__icon {
  color:
    var(--biva-success);

  background:
    var(--biva-success-soft);
}

.dashboard-stat.is-devices
.dashboard-stat__icon {
  color:
    #805800;

  background:
    var(--biva-yellow-50);
}

.dashboard-stat.is-expiry
.dashboard-stat__icon {
  color:
    #6549d6;

  background:
    #f3efff;
}

.dashboard-stat__icon svg,
.dashboard-stat__trend svg {
  width: 21px;
  height: 21px;

  fill: none;

  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-stat__trend {
  width: 30px;
  height: 30px;

  display: grid;
  place-items: center;

  border-radius: 10px;

  color:
    var(--biva-muted);

  background:
    var(--biva-surface-soft);
}

.dashboard-stat__trend svg {
  width: 15px;
  height: 15px;
}

.dashboard-stat__content {
  margin-top: 23px;
}

.dashboard-stat__content > span {
  display: block;

  margin-bottom: 6px;

  color:
    var(--biva-muted);

  font-size: 0.69rem;
  font-weight: 700;
}

.dashboard-stat__content h2 {
  margin: 0;

  overflow-wrap: anywhere;

  color:
    var(--biva-ink);

  font-size:
    clamp(1.35rem, 2.2vw, 2rem);

  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
}


/* ========================================
   QUICK ACTIONS SURFACE
======================================== */

.dashboard-actions-surface {
  width:
    calc(100% - clamp(36px, 10vw, 156px));

  margin: 0 auto;

  padding:
    clamp(18px, 2.5vw, 28px);
}

.dashboard-actions {
  display: grid;

  grid-template-columns:
    repeat(5, minmax(0, 1fr));

  gap: 12px;
}

.dashboard-action-card {
  min-width: 0;
  min-height: 112px;

  padding: 15px;

  display: flex;
  align-items: center;

  gap: 11px;

  border:
    1px solid var(--biva-line);

  border-radius:
    var(--biva-radius-lg);

  color:
    var(--biva-text);

  background:
    linear-gradient(
      180deg,
      #ffffff,
      var(--biva-surface-soft)
    );

  font: inherit;

  cursor: pointer;

  text-align: left;

  transition:
    transform 170ms ease,
    border-color 170ms ease,
    box-shadow 170ms ease;
}

.dashboard-action-card:hover {
  transform:
    translateY(-3px);

  border-color:
    rgba(53, 112, 243, 0.22);

  box-shadow:
    var(--biva-shadow-sm);
}

.dashboard-action-card__icon {
  width: 42px;
  height: 42px;

  flex: 0 0 42px;

  display: grid;
  place-items: center;

  border-radius: 14px;

  color:
    var(--biva-blue-700);

  background:
    var(--biva-blue-50);
}

.dashboard-action-card__icon svg {
  width: 20px;
  height: 20px;

  fill: none;

  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-action-card__content {
  min-width: 0;

  flex: 1;

  display: grid;

  gap: 2px;
}

.dashboard-action-card__content strong {
  overflow: hidden;

  color:
    var(--biva-ink);

  font-size: 0.76rem;
  font-weight: 850;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-action-card__content small {
  color:
    var(--biva-muted);

  font-size: 0.63rem;
}

.dashboard-action-card__arrow {
  width: 27px;
  height: 27px;

  flex: 0 0 27px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  color:
    var(--biva-blue-700);

  background:
    var(--biva-blue-50);
}

.dashboard-action-card__arrow svg {
  width: 14px;
  height: 14px;

  fill: none;

  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* ========================================
   MEDIUM DESKTOP
======================================== */

@media (max-width: 1250px) {

  .platform-products:
  has(
    > .dashboard-surface:nth-child(3)
  ) {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .stats-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .dashboard-actions {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }

}


/* ========================================
   TABLET
======================================== */

@media (max-width: 980px) {

  .dashboard-nav {
    grid-template-columns:
      auto minmax(0, 1fr);

    gap: 18px;
  }

  .dashboard-nav__context {
    display: none;
  }

  .dashboard-nav__account {
    justify-self: end;
  }

  .dashboard-hero {
    grid-template-columns: 1fr;
  }

  .dashboard-section-heading {
    grid-template-columns: 1fr;

    gap: 10px;
  }

  .platform-products,
  .platform-products:
  has(
    > .dashboard-surface:nth-child(3)
  ) {
    grid-template-columns: 1fr;
  }

  .dashboard-product {
    min-height: 390px;
  }

}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 760px) {

  .dashboard-nav {
    padding:
      11px 13px;

    gap: 10px;
  }

  .dashboard-nav__brand-mark {
    width: 40px;
    height: 40px;

    flex-basis: 40px;
  }

  .dashboard-nav__brand-copy span,
  .dashboard-nav__user-copy {
    display: none;
  }

  .dashboard-nav__account {
    gap: 7px;
  }

  .dashboard-nav__user {
    display: none;
  }

  .dashboard-nav__icon-btn {
    width: 40px;
    height: 40px;

    flex-basis: 40px;
  }


  /* Shared page widths */

  .dashboard-container
  > .dashboard-surface:first-of-type,
  .dashboard-section-heading,
  .platform-products,
  .stats-grid,
  .dashboard-actions-surface {
    width:
      calc(100% - 24px);
  }


  /* Hero */

  .dashboard-container
  > .dashboard-surface:first-of-type {
    margin-top: 18px;

    border-radius: 22px;
  }

  .dashboard-hero {
    min-height: auto;

    padding:
      27px 18px;

    gap: 30px;
  }

  .dashboard-hero h1 {
    font-size:
      clamp(2.35rem, 12vw, 3.6rem);
  }

  .dashboard-hero__left > p {
    margin-top: 16px;

    font-size: 0.87rem;
  }

  .dashboard-hero__quick {
    grid-template-columns: 1fr;
  }

  .dashboard-hero__right {
    padding: 17px;

    border-radius: 20px;
  }

  .dashboard-hero__actions {
    grid-template-columns: 1fr;
  }


  /* Section heading */

  .dashboard-section-heading {
    margin-top: 43px;
    margin-bottom: 18px;
  }

  .dashboard-section-heading h2 {
    font-size: 2rem;
  }

  .dashboard-section-heading > p {
    font-size: 0.78rem;
  }


  /* Product cards */

  .platform-products {
    gap: 14px;
  }

  .dashboard-product {
    min-height: auto;

    padding:
      24px 19px;
  }

  .dashboard-product__content h2 {
    font-size: 2rem;
  }

  .dashboard-product__button {
    margin-top: 26px;
  }


  /* Statistics */

  .stats-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 10px;
  }

  .dashboard-stat {
    min-height: 155px;

    padding: 16px;
  }

  .dashboard-stat__content h2 {
    font-size: 1.35rem;
  }


  /* Quick actions */

  .dashboard-actions-surface {
    padding: 13px;
  }

  .dashboard-actions {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 9px;
  }

  .dashboard-action-card {
    min-height: 104px;

    padding: 13px;
  }

  .dashboard-action-card__arrow {
    display: none;
  }

}


/* ========================================
   VERY SMALL PHONES
======================================== */

@media (max-width: 390px) {

  .dashboard-nav__brand-copy strong {
    font-size: 0.92rem;
  }

  .dashboard-hero h1 {
    font-size: 2.25rem;
  }

  .stats-grid,
  .dashboard-actions {
    grid-template-columns: 1fr;
  }

  .dashboard-stat {
    min-height: 135px;
  }

  .dashboard-action-card {
    min-height: 84px;
  }

}


/* ========================================
   REDUCED MOTION
======================================== */

@media (prefers-reduced-motion: reduce) {

  .dashboard-nav__icon-btn,
  .dashboard-action-card {
    transition: none;
  }

}




.dashboard-nav__dropdown-action.is-admin {
  color:
    #1d4ed8;

  background:
    #eff6ff;
}

.dashboard-nav__dropdown-action.is-admin:hover {
  color:
    #ffffff;

  background:
    #2563eb;
}

.dashboard-nav__dropdown-action.is-admin svg {
  color:
    currentColor;
}