.dashboard-screen { min-height: 100vh; background: var(--canvas); }
.dashboard-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  min-height: 80px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 48px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.dashboard-header__right { display: flex; align-items: center; gap: 22px; color: var(--navy); font-size: 13px; }
.dashboard-layout { display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.dashboard-sidebar {
  position: sticky;
  top: 80px;
  display: flex;
  height: calc(100vh - 80px);
  flex-direction: column;
  padding: 34px 20px;
  color: #afc0d5;
  background: #07152e;
}
.dashboard-sidebar h2 { margin: 0 8px 24px; color: #fff; font-size: 18px; }
.dashboard-nav { display: grid; gap: 10px; }
.dashboard-nav__item {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 46px;
  border: 0;
  border-radius: 10px;
  padding: 0 14px;
  color: #afc0d5;
  background: transparent;
  font-size: 13px;
  text-align: left;
}
.dashboard-nav__item.is-active { color: #fff; background: #143d78; }
.dashboard-nav__item.is-active span:first-child { color: var(--cyan); }
.dashboard-signout {
  margin-top: auto;
  border: 0;
  border-radius: 10px;
  padding: 13px 14px;
  color: #afc0d5;
  background: transparent;
  text-align: left;
}
.dashboard-main { min-width: 0; padding: 18px 48px 72px; }
.dashboard-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-top: 8px;
}
.dashboard-heading h1 { margin: 8px 0 4px; color: var(--navy); font-size: 32px; }
.dashboard-heading p { margin: 0; color: var(--muted); }
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 260px));
  gap: 22px;
  margin: 36px 0 40px;
}
.dashboard-stat { min-height: 118px; padding: 20px 24px; }
.dashboard-stat strong { display: block; color: var(--navy); font-size: 30px; }
.dashboard-stat span { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; }
.dashboard-section-title { margin: 0 0 18px; color: var(--navy); font-size: 22px; }
.purchased-cv-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 28px;
  margin-bottom: 18px;
  padding: 22px;
}
.purchased-cv-card__preview { display: grid; place-items: start center; }
.purchased-cv-card .mini-resume { width: 126px; height: 196px; }
.purchased-cv-card__body { min-width: 0; }
.purchased-cv-card__title { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.purchased-cv-card h3 { margin: 8px 0 10px; color: var(--navy); font-size: 19px; }
.purchased-cv-card p { margin: 0 0 10px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.entitlement-note { display: inline-flex; border-radius: 999px; padding: 7px 10px; background: #fff7e8; color: #8a5314 !important; font-size: 11px !important; font-weight: 700; }
.entitlement-note.is-active { color: #176a49 !important; background: var(--soft-green); }
.purchased-cv-card__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.dashboard-list { display: grid; gap: 14px; margin-top: 34px; }
.dashboard-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
}
.dashboard-row h3 { margin: 0 0 6px; color: var(--navy); font-size: 16px; }
.dashboard-row p { margin: 0; color: var(--muted); font-size: 12px; }
.payment-summary { display: grid; justify-items: end; gap: 8px; }
.payment-summary strong { color: var(--navy); }
.dashboard-empty,
.dashboard-loading { display: grid; min-height: 340px; place-items: center; padding: 48px; text-align: center; }
.dashboard-empty h2,
.dashboard-loading h2 { margin: 14px 0 8px; color: var(--navy); }
.dashboard-empty p,
.dashboard-loading p { max-width: 520px; margin: 0 auto 24px; color: var(--muted); line-height: 1.55; }
.dashboard-empty__icon {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  margin: 0 auto;
  border-radius: 50%;
  color: var(--blue);
  background: var(--soft-teal);
  font-weight: 800;
}
.spinner {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  border: 4px solid var(--border);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: dashboard-spin .8s linear infinite;
}
@keyframes dashboard-spin { to { transform: rotate(360deg); } }
.support-panel { display: grid; gap: 10px; margin-top: 34px; padding: 28px; }
.support-panel details { border-bottom: 1px solid var(--border); padding: 14px 0; }
.support-panel summary { color: var(--navy); font-weight: 700; cursor: pointer; }
.support-panel p { color: var(--muted); line-height: 1.6; }
.support-panel .btn { width: max-content; margin-top: 14px; }
.support-request-panel { max-width: 760px; padding: 28px; }
.support-request-panel > p { margin: 0 0 24px; color: var(--muted); line-height: 1.6; }
.support-request-panel form { display: grid; gap: 18px; }
.support-request-panel .form-actions { margin-top: 4px; }
.account-layout { display: grid; grid-template-columns: minmax(0, 700px) 340px; gap: 30px; margin-top: 34px; align-items: start; }
.account-panel { padding: 28px; }
.account-panel h2 { margin: 0 0 22px; color: var(--navy); }
.account-panel > p { color: var(--muted); line-height: 1.6; }
.dashboard-mobile-nav { display: none; }

@media (max-width: 980px) {
  .dashboard-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-layout { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .dashboard-header { min-height: 64px; padding: 0 18px; }
  .dashboard-header__right .header-action { display: none; }
  .dashboard-layout { display: block; }
  .dashboard-sidebar { display: none; }
  .dashboard-main { padding: 18px 20px 104px; }
  .dashboard-heading { display: block; }
  .dashboard-heading h1 { font-size: 27px; }
  .dashboard-heading .btn { width: 100%; margin-top: 24px; }
  .dashboard-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 22px 0 32px; }
  .dashboard-stat { min-height: 100px; padding: 16px 18px; }
  .purchased-cv-card { grid-template-columns: 94px minmax(0, 1fr); gap: 16px; padding: 16px; }
  .purchased-cv-card .mini-resume { width: 92px; height: 152px; }
  .purchased-cv-card__title { display: block; }
  .purchased-cv-card h3 { font-size: 15px; }
  .purchased-cv-card__actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .dashboard-row { grid-template-columns: 1fr; }
  .dashboard-row .btn { width: 100%; }
  .payment-summary { justify-items: start; }
  .dashboard-mobile-nav {
    position: fixed;
    z-index: 35;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: 72px;
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid var(--border);
    background: #fff;
  }
  .dashboard-mobile-nav button {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 4px;
    border: 0;
    color: var(--muted);
    background: transparent;
  }
  .dashboard-mobile-nav button span { font-size: 18px; }
  .dashboard-mobile-nav button small { font-size: 10px; }
  .dashboard-mobile-nav button.is-active { color: var(--blue); font-weight: 700; }
}
