/* Member dashboard — action-first layout */
.dashboard-page {
  background:
    linear-gradient(rgba(16, 40, 61, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 40, 61, 0.035) 1px, transparent 1px),
    #f2f4f1;
  background-size: 72px 72px;
}

.dashboard-page .dashboard-shell {
  width: min(100%, 1480px);
  padding: 0 38px;
}

.dashboard-page .dashboard-header {
  margin-bottom: 16px;
}

.dashboard-page .dashboard-header .site-nav {
  gap: 4px;
}

.dashboard-page .dashboard-header .site-nav a {
  padding: 10px 11px;
  border-radius: 999px;
}

.dashboard-main {
  display: grid;
  gap: 16px;
}

.dashboard-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.62fr);
  gap: clamp(46px, 8vw, 120px);
  align-items: end;
  min-height: 590px;
  padding: clamp(62px, 8vw, 116px) clamp(30px, 7vw, 108px);
  overflow: hidden;
  border-radius: 42px;
  background:
    radial-gradient(circle at 96% 4%, rgba(54, 181, 168, 0.33), transparent 27rem),
    radial-gradient(circle at 3% 100%, rgba(237, 117, 93, 0.22), transparent 25rem),
    #10283d;
  box-shadow: 0 26px 70px rgba(16, 40, 61, 0.18);
}

.dashboard-hero::before {
  content: "VN";
  position: absolute;
  top: -84px;
  right: 1vw;
  color: rgba(255, 255, 255, 0.035);
  font-size: clamp(14rem, 30vw, 30rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.12em;
}

.dashboard-hero-copy,
.dashboard-status {
  position: relative;
  z-index: 1;
}

.dashboard-eyebrow,
.dashboard-shortcuts header > span,
.dashboard-section-heading span,
.dashboard-profile-heading > span,
.dashboard-support-card > span,
.dashboard-account-card > span {
  margin: 0;
  color: #7ed0c5;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.17em;
}

.dashboard-hero h1 {
  margin: 18px 0 0;
  color: #fff;
  font-size: clamp(3rem, 4.6vw, 4.4rem);
  font-weight: 900;
  line-height: 1.13;
  letter-spacing: -0.06em;
}

.dashboard-hero-copy > p:not(.dashboard-eyebrow) {
  max-width: 680px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.95;
}

.dashboard-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.dashboard-page .dashboard-primary {
  border-color: #ed755d;
  background: #ed755d;
  color: #fff;
}

.dashboard-page .dashboard-secondary {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.dashboard-page .member-alert {
  margin-top: 20px;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.dashboard-status {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
}

.dashboard-status > p {
  margin: 0 0 20px;
  color: #7ed0c5;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.dashboard-status-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.dashboard-status-row > span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.78rem;
  font-weight: 700;
}

.dashboard-status-row strong {
  color: #fff;
  font-size: 1.85rem;
  line-height: 1;
}

.dashboard-status-row strong small {
  margin-left: 3px;
  font-size: 0.7rem;
}

.dashboard-status > a {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}

/* Quick actions */
.dashboard-shortcuts {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: clamp(34px, 6vw, 84px);
  align-items: start;
  padding: clamp(52px, 7vw, 88px) clamp(26px, 6vw, 86px);
  border-radius: 42px;
  background: #fff;
  box-shadow: 0 18px 52px rgba(16, 40, 61, 0.08);
}

.dashboard-shortcuts header {
  position: sticky;
  top: 116px;
}

.dashboard-shortcuts header > span,
.dashboard-section-heading span,
.dashboard-profile-heading > span {
  color: #0d726f;
}

.dashboard-shortcuts h2 {
  margin: 14px 0 0;
  color: #10283d;
  font-size: clamp(2.1rem, 2.8vw, 2.5rem);
  letter-spacing: -0.05em;
}

.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.shortcut-card {
  position: relative;
  display: grid;
  grid-template-columns: 46px 1fr 28px;
  gap: 16px;
  align-items: start;
  min-height: 190px;
  padding: 25px;
  border: 1px solid rgba(16, 40, 61, 0.1);
  border-radius: 24px;
  background: #f5f6f3;
  color: #10283d;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.shortcut-card:hover {
  transform: translateY(-3px);
  border-color: rgba(22, 140, 136, 0.34);
  background: #eef8f5;
}

.shortcut-featured {
  background: #dff2ee;
}

.shortcut-number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #10283d;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 900;
}

.shortcut-card small {
  color: #0d726f;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.shortcut-card strong {
  display: block;
  margin-top: 7px;
  font-size: 1.16rem;
}

.shortcut-card p {
  margin: 10px 0 0;
  color: #607580;
  font-size: 0.78rem;
  line-height: 1.7;
}

.shortcut-arrow {
  color: #0d726f;
  font-size: 1.25rem;
  font-weight: 900;
}

/* Video library */
.dashboard-learning {
  padding: clamp(62px, 8vw, 108px) clamp(26px, 6vw, 86px);
  border-radius: 42px;
  background: #10283d;
}

.dashboard-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.65fr);
  gap: 60px;
  align-items: end;
}

.dashboard-section-heading span {
  color: #7ed0c5;
}

.dashboard-section-heading h2 {
  margin: 15px 0 0;
  color: #fff;
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  line-height: 1.18;
  letter-spacing: -0.055em;
}

.dashboard-section-heading > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  line-height: 1.9;
}

.video-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 44px;
}

.video-filter button {
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
}

.video-filter button:hover,
.video-filter button.is-active {
  border-color: #7ed0c5;
  background: #7ed0c5;
  color: #10283d;
}

.video-filter-result {
  margin: 13px 0 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.7rem;
}

.dashboard-video-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.dashboard-page .dashboard-video-gallery .video-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.dashboard-page .dashboard-video-gallery .video-card[hidden] {
  display: none;
}

.dashboard-page .dashboard-video-gallery .video-card:hover {
  transform: translateY(-3px);
  border-color: rgba(126, 208, 197, 0.45);
  box-shadow: none;
}

.dashboard-video-gallery .video-thumb {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #071825;
}

.dashboard-video-gallery .video-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.dashboard-video-gallery .video-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.dashboard-video-gallery .video-category {
  color: #7ed0c5;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.dashboard-video-gallery .video-body h3 {
  margin: 10px 0 0;
  color: #fff;
  font-size: 1.08rem;
  line-height: 1.55;
}

.dashboard-video-gallery .video-body p {
  margin: 13px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.76rem;
  line-height: 1.8;
}

.dashboard-video-gallery .video-meta {
  margin-top: auto;
  padding-top: 22px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.66rem;
  font-weight: 800;
}

.dashboard-video-gallery .dashboard-video-featured {
  grid-column: span 2;
  display: grid !important;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
}

.dashboard-video-featured[hidden] {
  display: none !important;
}

.dashboard-video-featured .video-thumb {
  height: 100%;
  aspect-ratio: auto;
  min-height: 360px;
}

.dashboard-video-featured .video-body {
  padding: 34px;
}

.dashboard-video-featured .video-body h3 {
  font-size: clamp(1.45rem, 2.5vw, 2.1rem);
}

/* Profile workspace */
.dashboard-profile {
  display: grid;
  grid-template-columns: minmax(300px, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(44px, 7vw, 96px);
  padding: clamp(62px, 8vw, 108px) clamp(26px, 6vw, 86px);
  border-radius: 42px;
  background: #f4cf72;
}

.dashboard-profile-heading {
  align-self: start;
}

.dashboard-profile-heading h2 {
  margin: 14px 0 0;
  color: #10283d;
  font-size: clamp(2rem, 2.5vw, 2.25rem);
  line-height: 1.23;
  letter-spacing: -0.055em;
}

.dashboard-profile-heading p {
  margin: 24px 0 0;
  color: #526570;
  line-height: 1.9;
}

.profile-workspace {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(300px, 1.2fr);
  gap: 14px;
}

.dashboard-page .dashboard-profile-card,
.dashboard-page .dashboard-profile-form {
  min-width: 0;
  padding: clamp(24px, 3vw, 36px);
  border-radius: 26px;
}

.dashboard-page .dashboard-profile-card {
  border: 1px solid rgba(16, 40, 61, 0.1);
  background: rgba(255, 255, 255, 0.64);
}

.dashboard-page .dashboard-profile-form {
  background: #10283d;
}

.profile-card-label {
  color: #0d726f;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.dashboard-profile-form .profile-card-label {
  color: #7ed0c5;
}

.dashboard-profile-card h3,
.dashboard-profile-form h3 {
  margin: 10px 0 24px;
}

.dashboard-page .profile-details > div {
  display: block;
  padding: 16px 0;
}

.dashboard-page .profile-details dt {
  margin-bottom: 6px;
  color: #607580;
  font-size: 0.68rem;
}

.dashboard-page .profile-details dd {
  color: #10283d;
  line-height: 1.75;
}

.dashboard-profile-form label {
  color: rgba(255, 255, 255, 0.72);
}

.dashboard-profile-form input,
.dashboard-profile-form textarea {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.dashboard-profile-form input::placeholder,
.dashboard-profile-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.dashboard-profile-form .ghost-btn {
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
}

/* Support and account */
.dashboard-support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 16px;
}

.dashboard-support-card,
.dashboard-account-card {
  padding: clamp(42px, 6vw, 72px);
  border-radius: 38px;
}

.dashboard-support-card {
  background: #dff2ee;
}

.dashboard-account-card {
  border: 1px solid rgba(16, 40, 61, 0.1);
  background: #fff;
}

.dashboard-support-card > span,
.dashboard-account-card > span {
  color: #0d726f;
}

.dashboard-support-card h2,
.dashboard-account-card h2 {
  margin: 14px 0 0;
  color: #10283d;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  line-height: 1.35;
  letter-spacing: -0.04em;
}

.dashboard-support-card p,
.dashboard-account-card > p {
  margin: 20px 0 0;
  color: #58707d;
  line-height: 1.85;
}

.dashboard-support-card .btn,
.dashboard-account-card > .btn {
  margin-top: 28px;
}

.dashboard-support-card .btn {
  border-color: #10283d;
  background: #10283d;
  color: #fff;
}

.account-danger-details {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(16, 40, 61, 0.1);
}

.account-danger-details summary {
  color: #8a5550;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
}

.account-danger-details .danger-zone-content {
  margin-top: 18px;
  padding: 18px;
  border-radius: 16px;
  background: #fff0ed;
}

.account-danger-details p {
  margin: 0;
  color: #7b514d;
  font-size: 0.76rem;
  line-height: 1.75;
}

.account-danger-details .danger-btn {
  margin-top: 16px;
}

.dashboard-modal .modal-form-group {
  margin-top: 22px;
}

.dashboard-modal label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.82rem;
  font-weight: 800;
}

.dashboard-modal select,
.dashboard-modal input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccd6d9;
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 1rem;
}

.dashboard-modal input:focus-visible,
.dashboard-modal select:focus-visible {
  outline: 2px solid #2f796e;
  outline-offset: 2px;
}

.delete-reauth {
  margin-top: 20px;
  padding: 16px;
  border-left: 3px solid #9a4f48;
  background: #fff4f1;
}

.delete-reauth[hidden],
.delete-password-group[hidden] {
  display: none;
}

.delete-reauth-heading,
.delete-reauth-copy {
  margin: 0;
}

.delete-reauth-heading {
  color: #6f3833;
  font-size: 0.9rem;
  font-weight: 800;
}

.delete-reauth-copy {
  margin-top: 8px;
  color: #6f504d;
  font-size: 0.82rem;
  line-height: 1.75;
}

.delete-reauth .modal-form-group {
  margin-top: 16px;
}

.dashboard-modal .modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

.dashboard-footer {
  padding-bottom: 64px;
}

@media (max-width: 1080px) {
  .dashboard-page .dashboard-shell {
    padding-right: 22px;
    padding-left: 22px;
  }

  .dashboard-hero {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.58fr);
  }

  .dashboard-shortcuts,
  .dashboard-profile {
    grid-template-columns: 1fr;
  }

  .dashboard-shortcuts header {
    position: static;
  }

  .dashboard-shortcuts h2 {
    margin-bottom: 28px;
  }

  .dashboard-video-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-video-gallery .dashboard-video-featured {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .dashboard-hero,
  .dashboard-section-heading,
  .dashboard-support-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-hero {
    min-height: 0;
  }

  .dashboard-status {
    max-width: 520px;
  }

  .dashboard-section-heading {
    gap: 24px;
  }

  .profile-workspace {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .dashboard-modal {
    box-sizing: border-box;
    width: calc(100% - 24px);
  }

  .dashboard-page .dashboard-shell {
    padding-right: 12px;
    padding-left: 12px;
  }

  .dashboard-main {
    gap: 14px;
  }

  .dashboard-hero,
  .dashboard-shortcuts,
  .dashboard-learning,
  .dashboard-profile,
  .dashboard-support-card,
  .dashboard-account-card {
    border-radius: 26px;
  }

  .dashboard-hero {
    padding: 52px 22px 28px;
  }

  .dashboard-hero h1 {
    font-size: 1.95rem;
  }

  .dashboard-hero-copy > p:not(.dashboard-eyebrow) {
    font-size: 0.88rem;
  }

  .dashboard-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-hero-actions .btn {
    width: 100%;
  }

  .dashboard-status {
    padding: 22px;
    border-radius: 22px;
  }

  .dashboard-shortcuts,
  .dashboard-learning,
  .dashboard-profile {
    padding: 48px 20px;
  }

  .shortcut-grid {
    grid-template-columns: 1fr;
  }

  .shortcut-card {
    min-height: 150px;
    padding: 20px;
  }

  .dashboard-section-heading h2,
  .dashboard-profile-heading h2 {
    font-size: 2.15rem;
  }

  .dashboard-profile-heading h2 {
    font-size: 1.95rem;
  }

  .video-filter {
    flex-wrap: nowrap;
    margin-right: -20px;
    margin-left: -20px;
    padding: 0 20px 6px;
    overflow-x: auto;
  }

  .video-filter button {
    flex: 0 0 auto;
  }

  .dashboard-video-gallery {
    grid-template-columns: 1fr;
  }

  .dashboard-video-gallery .dashboard-video-featured {
    grid-column: auto;
    display: flex !important;
  }

  .dashboard-video-featured[hidden] {
    display: none !important;
  }

  .dashboard-video-featured .video-thumb {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .dashboard-video-featured .video-body {
    padding: 24px;
  }

  .dashboard-page .dashboard-profile-card,
  .dashboard-page .dashboard-profile-form {
    padding: 22px;
    border-radius: 22px;
  }

  .dashboard-support-card,
  .dashboard-account-card {
    padding: 40px 22px;
  }

  .dashboard-modal .modal-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shortcut-card,
  .dashboard-page .dashboard-video-gallery .video-card {
    transition: none;
  }
}
