/* =============================================================
   PROFILE DASHBOARD — Premium Redesign
   Design Language: Editorial Luxury + Asymmetrical Bento
   Matches checker.css architecture
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ── Container ── */
.dash-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 4rem;
}

/* ── Header (Soft Structuralism) ── */
.dash-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem 1.5rem;
  position: relative;
}

.dash-header-body {
  display: flex;
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

/* Avatar - Double-Bezel */
.dash-header-avatar {
  position: relative;
  width: 72px;
  height: 72px;
  min-width: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow:
    0 0 0 4px rgba(255,255,255,0.8),
    0 0 0 6px rgba(8,126,139,0.06),
    0 8px 32px rgba(11,57,84,0.1);
  transition: all 0.6s cubic-bezier(0.32, 0.72, 0, 1);
}

.dash-header-avatar::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent 60%);
  pointer-events: none;
}

.dash-header-avatar:hover {
  transform: scale(1.04);
  box-shadow:
    0 0 0 4px rgba(255,255,255,0.8),
    0 0 0 6px rgba(8,126,139,0.08),
    0 12px 40px rgba(11,57,84,0.14);
}

.dash-header-text {
  flex: 1;
  min-width: 0;
}

.dash-header-text h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--primary);
  font-size: 2.4rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.dash-header-text p {
  color: #94a3b8;
  font-size: 1.05rem;
  margin: 0;
  font-weight: 400;
  line-height: 1.55;
  max-width: 480px;
}

/* Credits Badge - Button-in-Button */
.dash-credits-badge {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: #fff;
  padding: 0.4rem;
  padding-right: 1.25rem;
  border-radius: 100px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: all 0.6s cubic-bezier(0.32, 0.72, 0, 1);
  flex-shrink: 0;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.02),
    0 4px 12px rgba(0, 0, 0, 0.02);
  position: relative;
}

.dash-credits-badge svg {
  width: 16px;
  height: 16px;
}

.dash-credits-badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  margin-right: 0.6rem;
  transition: all 0.6s cubic-bezier(0.32, 0.72, 0, 1);
  flex-shrink: 0;
}

.dash-credits-badge-icon svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.5;
}

.dash-credits-badge:hover {
  border-color: rgba(8, 126, 139, 0.08);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.02),
    0 8px 24px rgba(8, 126, 139, 0.04);
  transform: translateY(-1px);
}

.dash-credits-badge:hover .dash-credits-badge-icon {
  background: var(--secondary);
  transform: scale(1.05);
}

.dash-credits-badge:active {
  transform: scale(0.97);
}



/* ── Eyebrow Pill (matches checker .section-eyebrow) ── */
.dash-eyebrow {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--secondary);
  background: rgba(8, 126, 139, 0.08);
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 0.85rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.dash-eyebrow--gradient {
  background: linear-gradient(135deg, rgba(8,126,139,0.1), rgba(11,57,84,0.08));
}

/* ── Inline Banner ── */
.dash-inline-banner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  max-width: 800px;
  margin: 1.5rem auto 0;
  padding: 0.85rem 1.25rem;
  background: rgba(8,126,139,0.05);
  border: 1px solid rgba(8,126,139,0.12);
  border-radius: 16px;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 500;
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1.4;
  overflow: clip;
}

.dash-inline-banner svg {
  color: var(--secondary);
  flex-shrink: 0;
}

.dash-inline-banner-btn {
  margin-left: auto;
  flex-shrink: 0;
  background: var(--secondary);
  color: #fff;
  border: none;
  padding: 0.45rem 1rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: all 0.5s cubic-bezier(0.32, 0.72, 0, 1);
  white-space: nowrap;
}

.dash-inline-banner-btn:hover {
  background: #0a6b77;
  transform: translateY(-1px);
}

.dash-inline-banner-btn:active {
  transform: scale(0.97);
}

/* ── Asymmetrical Main Grid ── */
.dash-main-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

/* ── Dash Card (Double-Bezel Architecture) ── */
.dash-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 24px;
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.03),
    0 4px 12px rgba(0, 0, 0, 0.03);
  transition: all 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}

.dash-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(8, 126, 139, 0.02), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.32, 0.72, 0, 1);
  pointer-events: none;
}

.dash-card:hover {
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.03),
    0 12px 32px rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.04);
}

.dash-card:hover::before {
  opacity: 1;
}

.dash-card--featured {
  background: linear-gradient(135deg, #fff, rgba(8, 126, 139, 0.02));
}

.dash-card--featured::before {
  background: linear-gradient(135deg, rgba(8, 126, 139, 0.03), rgba(11, 57, 84, 0.02) 60%);
}

.dash-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
}

.dash-card-header .dash-eyebrow {
  margin-bottom: 0;
}

.dash-card-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.dash-card-desc {
  font-size: 0.9rem;
  color: #8896a6;
  margin: 0 0 1.25rem;
  line-height: 1.5;
  font-weight: 400;
}

.dash-card-footnote {
  font-size: 0.8rem;
  color: #a0aec0;
  margin: 1rem 0 0;
  line-height: 1.4;
}

/* ── Badges ── */
.dash-badge {
  display: inline-flex;
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.dash-badge--complete {
  background: rgba(5, 150, 105, 0.08);
  color: #059669;
}

.dash-badge--incomplete {
  background: rgba(220, 38, 38, 0.08);
  color: #dc2626;
}

.dash-badge--new {
  background: rgba(8, 126, 139, 0.08);
  color: var(--secondary);
}

/* ── Chip Grid ── */
.dash-chip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin: 1rem 0 1.25rem;
}

.dash-chip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.02);
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--primary);
  border: 1px solid rgba(0, 0, 0, 0.04);
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: all 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

.dash-chip:hover {
  background: rgba(8, 126, 139, 0.03);
  border-color: rgba(8, 126, 139, 0.08);
}

.dash-chip-grade {
  font-weight: 700;
  color: var(--secondary);
  font-size: 0.8rem;
}

.dash-chip--more {
  justify-content: center;
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ── Empty State ── */
.dash-empty-state {
  text-align: center;
  padding: 1.5rem 1rem;
  margin: 1rem 0 1.25rem;
}

.dash-empty-state svg {
  color: #cbd5e1;
  margin-bottom: 0.75rem;
}

.dash-empty-state h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 0.25rem;
}

.dash-empty-state p {
  font-size: 0.8rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.4;
}

/* ── Saved Programs Preview (profile dashboard) ── */
.dash-saved-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.dash-saved-grid a.dash-saved-card {
  all: unset;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid #e5eaef;
  border-radius: 12px;
  cursor: pointer;
  min-width: 0;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.dash-saved-grid a.dash-saved-card:hover {
  border-color: #c5d0db;
  box-shadow: 0 3px 12px rgba(11, 57, 84, 0.07);
  transform: translateY(-1px);
}

.dash-saved-card .dash-saved-top {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dash-saved-card .dash-saved-name {
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #0b3954;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dash-saved-card .dash-saved-uni {
  font-size: 0.72rem;
  font-weight: 500;
  color: #087e8b;
}

.dash-saved-card .dash-saved-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.dash-saved-card .dash-saved-meta .dash-chip {
  all: unset;
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 500;
  color: #087e8b;
  background: #eef5f7;
  padding: 3px 8px;
  border-radius: 6px;
  line-height: 1.4;
  box-sizing: border-box;
}

/* ── Saved Programs full page (saved_programs.html) ── */
div.dash-saved-card {
  position: relative;
  display: flex;
  background: #fff;
  border: 1px solid #e5eaef;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

div.dash-saved-card:hover {
  border-color: #c5d0db;
  box-shadow: 0 3px 12px rgba(11, 57, 84, 0.07);
  transform: translateY(-1px);
}

.dash-saved-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.dash-saved-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  border: none;
  background: transparent;
  color: #b0c4d4;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 2;
  opacity: 0;
}

div.dash-saved-card:hover .dash-saved-remove {
  opacity: 1;
}

.dash-saved-remove:hover {
  color: #db3d6c;
  background: rgba(219, 61, 108, 0.06);
}

.dash-saved-remove svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 600px) {
  .dash-saved-grid {
    grid-template-columns: 1fr;
  }

  div.dash-saved-card .dash-saved-remove {
    opacity: 1;
    width: 44px;
  }
}

.dash-empty-state--large {
  padding: 2.5rem 1.5rem;
}

.dash-empty-state--large svg {
  width: 36px;
  height: 36px;
}

.dash-empty-state--large .dash-btn {
  margin-top: 1rem;
}

/* ── Buttons (Button-in-Button Architecture) ── */
.dash-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.32, 0.72, 0, 1);
  text-decoration: none;
  border: none;
  letter-spacing: 0.01em;
  line-height: 1;
  position: relative;
  overflow: hidden;
}

.dash-btn svg {
  transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}

.dash-btn:hover svg {
  transform: translateX(2px);
}

.dash-btn:active {
  transform: scale(0.97);
}

.dash-btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow:
    0 2px 8px rgba(11, 57, 84, 0.2),
    0 8px 24px rgba(11, 57, 84, 0.15);
}

.dash-btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 100px;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent 60%);
  pointer-events: none;
}

.dash-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 6px 16px rgba(11, 57, 84, 0.28),
    0 20px 48px rgba(11, 57, 84, 0.2);
}

.dash-btn--primary:active {
  transform: scale(0.97);
}

.dash-btn-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  transition: all 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}

.dash-btn--primary:hover .dash-btn-icon {
  background: rgba(255, 255, 255, 0.18);
  transform: translateX(2px);
}

.dash-btn--secondary {
  background: var(--primary);
  color: #fff;
  box-shadow:
    0 2px 6px rgba(11, 57, 84, 0.15);
}

.dash-btn--secondary:hover {
  background: #0a4e6e;
  transform: translateY(-1px);
  box-shadow:
    0 4px 12px rgba(11, 57, 84, 0.2);
}

.dash-btn--ghost {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid rgba(0, 0, 0, 0.08);
}

.dash-btn--ghost:hover {
  border-color: rgba(8, 126, 139, 0.25);
  color: var(--secondary);
  background: rgba(8, 126, 139, 0.03);
}

.dash-btn-group {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.dash-btn-group .dash-btn {
  width: auto;
  flex: 0 0 auto;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

/* ── Section ── */
.dash-section {
  margin-top: 2.5rem;
}

.dash-section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.dash-section-header .dash-eyebrow {
  margin-bottom: 0;
}

.dash-section-header h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
  letter-spacing: -0.02em;
}

.dash-section-link {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--secondary);
  text-decoration: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: all 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}

.dash-section-link:hover {
  color: var(--primary);
  gap: 0.5rem;
}

.dash-section-link svg {
  transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}

.dash-section-link:hover svg {
  transform: translateX(2px);
}

/* ── List (Check History) ── */
.dash-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dash-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.1rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  gap: 1rem;
  transition: all 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}

.dash-list-item:hover {
  border-color: rgba(8, 126, 139, 0.1);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.02);
  transform: translateY(-1px);
}

.dash-list-item:hover > .dash-list-right svg {
  transform: translateX(2px);
  color: var(--secondary);
}

.dash-list-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.dash-list-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.dash-list-right svg {
  width: 14px;
  height: 14px;
  color: #c8d0da;
  transition: all 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}

.dash-list-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  word-break: break-word;
}

.dash-list-meta {
  font-size: 0.75rem;
  color: #94a3b8;
  white-space: nowrap;
  font-weight: 500;
}

/* ── Mode Badges ── */
.dash-mode-badge {
  display: inline-flex;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: capitalize;
  letter-spacing: 0.04em;
  white-space: nowrap;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.dash-mode-badge--single {
  background: rgba(30, 64, 175, 0.08);
  color: #1e40af;
}

.dash-mode-badge--university {
  background: rgba(5, 150, 105, 0.08);
  color: #065f46;
}

.dash-mode-badge--filtered {
  background: rgba(217, 119, 6, 0.08);
  color: #92400e;
}

/* ── Tools Grid ── */
.dash-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0.75rem;
}

.dash-tool-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}

.dash-tool-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(8, 126, 139, 0.02), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.32, 0.72, 0, 1);
  pointer-events: none;
}

.dash-tool-card:hover {
  border-color: rgba(8, 126, 139, 0.12);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.02),
    0 8px 24px rgba(8, 126, 139, 0.04);
  transform: translateY(-2px);
}

.dash-tool-card:hover::before {
  opacity: 1;
}

.dash-tool-card:hover .dash-tool-arrow {
  color: var(--secondary);
  transform: translateX(2px);
}

.dash-tool-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 126, 139, 0.06);
  border-radius: 14px;
  color: var(--secondary);
  transition: all 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}

.dash-tool-card:hover .dash-tool-icon {
  background: rgba(8, 126, 139, 0.1);
  transform: scale(1.05);
}

.dash-tool-body {
  flex: 1;
  min-width: 0;
}

.dash-tool-body h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 0.2rem;
  letter-spacing: -0.01em;
}

.dash-tool-body p {
  font-size: 0.78rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.35;
}

.dash-tool-arrow {
  color: #c8d0da;
  flex-shrink: 0;
  transition: all 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}

/* ── Promo Grid ── */
.dash-promo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.dash-promo-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 24px;
  padding: 1.75rem;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}

.dash-promo-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(8, 126, 139, 0.02), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.32, 0.72, 0, 1);
  pointer-events: none;
}

.dash-promo-card:hover {
  border-color: rgba(8, 126, 139, 0.1);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.02),
    0 12px 32px rgba(8, 126, 139, 0.04);
  transform: translateY(-2px);
}

.dash-promo-card:hover::before {
  opacity: 1;
}

.dash-promo-card--dark {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.dash-promo-card--dark::before {
  background: linear-gradient(135deg, rgba(255,255,255,0.04), transparent 60%);
}

.dash-promo-card--dark:hover {
  background: #0a4e6e;
  border-color: #0a4e6e;
  box-shadow:
    0 2px 8px rgba(0,0,0,0.1),
    0 12px 32px rgba(11,57,84,0.2);
}

.dash-promo-card--dark * {
  color: #fff;
}

.dash-promo-card--dark .dash-cta-link {
  color: rgba(255,255,255,0.85);
}

.dash-promo-card--dark .dash-cta-link:hover {
  color: #fff;
}

.dash-promo-card--disabled {
  opacity: 0.75;
  cursor: default;
}

.dash-promo-card--disabled:hover {
  transform: none;
  border-color: rgba(0, 0, 0, 0.04);
  box-shadow: none;
}

.dash-promo-card--disabled:hover::before {
  opacity: 0;
}

.dash-promo-eyebrow {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--secondary);
  margin-bottom: 0.5rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.dash-promo-card--dark .dash-promo-eyebrow {
  color: rgba(255,255,255,0.5);
}

.dash-promo-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.3;
}

.dash-promo-card--dark .dash-promo-title {
  color: #fff;
}

.dash-promo-card p {
  font-size: 0.85rem;
  color: #8896a6;
  margin: 0 0 1.25rem;
  line-height: 1.5;
}

.dash-promo-card--dark p {
  color: rgba(255,255,255,0.7);
}

.dash-promo-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(0,0,0,0.03);
  color: #94a3b8;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ── CTA Link ── */
.dash-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary);
  text-decoration: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: all 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}

.dash-cta-link:hover {
  gap: 0.55rem;
  color: var(--primary);
}

.dash-cta-link svg {
  transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}

.dash-cta-link:hover svg {
  transform: translateX(2px);
}

.dash-cta-link--muted {
  color: #94a3b8;
}

.dash-cta-link--muted:hover {
  color: #7a8696;
}

/* ── Footer Bar ── */
.dash-footer-bar {
  text-align: center;
  margin-top: 2.5rem;
  padding: 1.75rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 20px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.dash-footer-bar p {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0 0 0.65rem;
}

.dash-footer-bar .dash-cta-link {
  font-size: 0.875rem;
}

/* ── Animations ── */
@keyframes dashFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.dash-header {
  animation: dashFadeUp 0.9s cubic-bezier(0.32, 0.72, 0, 1) both;
}

.dash-header-avatar,
.dash-header-text,
.dash-credits-badge {
  animation: dashFadeUp 0.9s cubic-bezier(0.32, 0.72, 0, 1) both;
}

.dash-header-text {
  animation-delay: 0.1s;
}

.dash-credits-badge {
  animation-delay: 0.2s;
}

.dash-inline-banner {
  animation: dashFadeUp 0.8s cubic-bezier(0.32, 0.72, 0, 1) 0.1s both;
}

.dash-main-grid > * {
  animation: dashFadeUp 0.8s cubic-bezier(0.32, 0.72, 0, 1) 0.15s both;
}

.dash-main-grid > *:nth-child(2) {
  animation-delay: 0.2s;
}

.dash-section {
  animation: dashFadeUp 0.8s cubic-bezier(0.32, 0.72, 0, 1) 0.25s both;
}

.dash-promo-grid {
  animation: dashFadeUp 0.8s cubic-bezier(0.32, 0.72, 0, 1) 0.3s both;
}

.dash-footer-bar {
  animation: dashFadeUp 0.8s cubic-bezier(0.32, 0.72, 0, 1) 0.35s both;
}

/* ── Responsive: Tablet ── */
@media (max-width: 900px) {
  .dash-main-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .dash-tools-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Responsive: Mobile ── */
@media (max-width: 768px) {
  .dash-header {
    padding: 2.5rem 1rem 0.75rem;
  }

  .dash-header-body {
    flex-direction: row;
    flex-wrap: wrap;
    text-align: left;
    align-items: center;
    gap: 1rem;
  }

  .dash-header-text {
    flex: 1 1 100%;
    order: 3;
  }

  .dash-header-text p {
    max-width: 100%;
    font-size: 0.95rem;
  }

  .dash-header-text h1 {
    font-size: 1.75rem;
  }

  .dash-header-avatar {
    width: 52px;
    height: 52px;
    min-width: 52px;
    font-size: 1.2rem;
  }

  .dash-credits-badge {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }

  .dash-container {
    padding: 0 1rem 3rem;
  }

  .dash-card {
    padding: 1.35rem;
    border-radius: 20px;
  }

  .dash-card-title {
    font-size: 1.15rem;
  }

  .dash-chip-grid {
    grid-template-columns: 1fr;
  }

  .dash-btn-group {
    flex-direction: column;
  }

  .dash-section-header {
    gap: 0.5rem;
  }

  .dash-section-header h3 {
    font-size: 1rem;
  }

  .dash-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .dash-list-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 1rem 1.15rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow:
      0 1px 3px rgba(0, 0, 0, 0.03),
      0 4px 12px rgba(0, 0, 0, 0.03);
  }

  .dash-promo-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .dash-promo-card {
    padding: 1.35rem;
    border-radius: 20px;
  }

  .dash-promo-title {
    font-size: 0.95rem;
  }

  .dash-tool-card {
    padding: 1rem 1.1rem;
    border-radius: 16px;
  }

  .dash-tools-grid {
    gap: 0.6rem;
  }

  .dash-footer-bar {
    padding: 1.35rem;
    margin-top: 2rem;
  }

  .dash-inline-banner {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    padding: 0.75rem 1rem;
    gap: 0.5rem;
    font-size: 0.8rem;
  }

  .dash-inline-banner-btn {
    margin-left: 0;
  }

  .dash-empty-state--large {
    padding: 2rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .dash-header {
    padding: 2rem 0.75rem 0.5rem;
  }

  .dash-header-text h1 {
    font-size: 1.5rem;
  }

  .dash-header-text p {
    font-size: 0.9rem;
  }

  .dash-header-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    font-size: 1.05rem;
  }

  .dash-card {
    padding: 1.15rem;
    border-radius: 18px;
  }

  .dash-promo-card {
    padding: 1.15rem;
    border-radius: 18px;
  }

  .dash-inline-banner {
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.78rem;
    padding: 0.7rem 0.9rem;
    border-radius: 14px;
  }

  .dash-inline-banner-btn {
    width: 100%;
    text-align: center;
    padding: 0.55rem 1rem;
    font-size: 0.78rem;
  }
}

/* =============================================================
   RESULTS MODAL — Shared checker-style
   ============================================================= */

.results-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  justify-content: center;
  align-items: flex-start;
  padding-top: 2rem;
}

.results-modal.active {
  display: flex;
}

.results-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 57, 84, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: resultsBackdropFadeIn 0.5s cubic-bezier(0.32, 0.72, 0, 1) both;
}

.results-modal-content {
  position: relative;
  background: #fff;
  border-radius: 28px;
  width: 90%;
  max-width: 600px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.02),
    0 8px 32px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  animation: resultsContentSlideUp 0.6s cubic-bezier(0.32, 0.72, 0, 1) both;
}

.results-modal-content::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(8, 126, 139, 0.02), transparent 50%);
  pointer-events: none;
}

.results-modal-header,
.results-modal-body,
.results-modal-footer {
  position: relative;
  z-index: 1;
}

.results-modal-header {
  padding: 1.75rem 2rem 1rem;
}

.results-modal-header h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 0.25rem;
  letter-spacing: -0.03em;
}

.results-modal-header p {
  font-size: 0.85rem;
  color: #8896a6;
  margin: 0;
  line-height: 1.5;
}

.results-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(0, 0, 0, 0.03);
  border: none;
  cursor: pointer;
  color: #b0bec5;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}

.results-modal-close:hover {
  background: rgba(8, 126, 139, 0.06);
  color: var(--secondary);
  transform: translateY(-1px);
}

.results-modal-close:active {
  transform: scale(0.92);
}

.results-modal-body {
  padding: 1.25rem 2rem 1.5rem;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.06) transparent;
}

.results-section-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--secondary);
  background: rgba(8, 126, 139, 0.08);
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  display: inline-block;
  margin: 1.25rem 0 0.75rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.results-section-label:first-child {
  margin-top: 0;
}

.result-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.375rem;
  padding: 0.6rem 0.75rem;
  border-radius: 16px;
  transition: all 0.5s cubic-bezier(0.32, 0.72, 0, 1);
  border: 1px solid transparent;
}

.result-row:hover {
  background: rgba(8, 126, 139, 0.02);
  border-color: rgba(8, 126, 139, 0.06);
}

.result-subject-label {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary);
  padding: 0.5rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.result-subject-select,
.result-grade-select {
  position: relative;
  padding: 0.6rem 0.85rem;
  border: 1.5px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  font-size: 0.85rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: #fafbfc;
  color: var(--primary);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' fill='none'%3E%3Cpath d='M1.5 1.5l4.5 4 4.5-4' stroke='%2394a3b8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px 7px;
  padding-right: 2.25rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.result-subject-select {
  flex: 1;
  min-width: 0;
}

.result-grade-select {
  width: 110px;
  flex-shrink: 0;
}

.result-subject-select option:disabled {
  color: #cbd5e1;
  background: #f8f9fa;
}

.result-subject-select:focus,
.result-grade-select:focus {
  outline: none;
  border-color: rgba(8, 126, 139, 0.3);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(8, 126, 139, 0.06);
}

.result-delete-btn {
  background: rgba(0, 0, 0, 0.02);
  border: none;
  cursor: pointer;
  color: #c8d0da;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}

.result-delete-btn:hover {
  background: rgba(219, 61, 108, 0.06);
  color: #db3d6c;
  transform: translateY(-1px);
}

.result-delete-btn:active {
  transform: scale(0.92);
}

.inline-confirm {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  animation: inlineConfirmIn 0.25s cubic-bezier(0.32, 0.72, 0, 1);
}

.inline-confirm-text {
  font-size: 0.7rem;
  font-weight: 600;
  color: #db3d6c;
  white-space: nowrap;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.inline-confirm-yes,
.inline-confirm-no {
  border: none;
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.32, 0.72, 0, 1);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.inline-confirm-yes {
  background: #db3d6c;
  color: #fff;
}

.inline-confirm-yes:hover {
  background: #c02e5a;
}

.inline-confirm-no {
  background: rgba(0, 0, 0, 0.05);
  color: #666;
}

.inline-confirm-no:hover {
  background: rgba(0, 0, 0, 0.1);
}

@keyframes inlineConfirmIn {
  from { opacity: 0; transform: translateX(-4px); }
  to { opacity: 1; transform: translateX(0); }
}

.results-modal-footer {
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.results-modal-footer::before {
  content: '';
  position: absolute;
  top: -24px;
  left: 0;
  right: 0;
  height: 24px;
  background: linear-gradient(to bottom, transparent, #fff);
  pointer-events: none;
}

.result-clear-all {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #db3d6c;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  transition: all 0.5s cubic-bezier(0.32, 0.72, 0, 1);
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.result-clear-all:hover {
  background: rgba(219, 61, 108, 0.06);
  border-color: rgba(219, 61, 108, 0.15);
}

.result-clear-all:active {
  transform: scale(0.97);
}

.result-clear-all svg {
  width: 14px;
  height: 14px;
}

.results-modal-actions {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}

.result-cancel-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.25rem;
  background: transparent;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.32, 0.72, 0, 1);
  letter-spacing: 0.01em;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.result-cancel-btn:hover {
  border-color: rgba(8, 126, 139, 0.25);
  color: var(--secondary);
  background: rgba(8, 126, 139, 0.03);
}

.result-cancel-btn:active {
  transform: scale(0.97);
}

.result-save-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.6rem 1.5rem 0.6rem 1.75rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.01em;
  box-shadow:
    0 2px 8px rgba(11, 57, 84, 0.2),
    0 8px 24px rgba(11, 57, 84, 0.15);
  transition: all 0.5s cubic-bezier(0.32, 0.72, 0, 1);
  position: relative;
  overflow: hidden;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.result-save-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 100px;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent 60%);
  pointer-events: none;
}

.result-save-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}

.result-save-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 4px 12px rgba(11, 57, 84, 0.25),
    0 16px 40px rgba(11, 57, 84, 0.2);
}

.result-save-btn:hover svg {
  transform: translateX(2px);
}

.result-save-btn:active {
  transform: scale(0.97);
}

.result-save-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.result-save-btn:disabled svg {
  transform: none;
}

/* Entrance Animations */
@keyframes resultsBackdropFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes resultsContentSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* Mobile Bottom Sheet */
@media (max-width: 640px) {
  .results-modal {
    padding-top: 0;
    align-items: flex-end;
  }

  .results-modal-content {
    max-height: 92vh;
    border-radius: 28px 28px 0 0;
    width: 100%;
    max-width: 100%;
    animation: resultsContentSlideUp 0.6s cubic-bezier(0.32, 0.72, 0, 1) both;
  }

  .results-modal-header {
    padding: 1.25rem 1.25rem 0.875rem;
  }

  .results-modal-body {
    padding: 1rem 1.25rem 1.25rem;
  }

  .results-modal-footer {
    padding: 1rem 1.25rem;
  }

  .result-row {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem;
  }

  .result-subject-select {
    flex: 1 1 100%;
    order: 1;
  }

  .result-grade-select {
    flex: 1;
    order: 2;
  }

  .result-delete-btn {
    order: 3;
  }

  .results-modal-footer {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .result-clear-all {
    width: 100%;
    justify-content: center;
  }

  .results-modal-actions {
    width: 100%;
  }

  .result-cancel-btn,
  .result-save-btn {
    flex: 1;
    justify-content: center;
  }
}
