.candidate-dashboard {
  min-height: calc(100vh - 78px);
  padding: 28px 18px 42px;
  background:
    linear-gradient(115deg, rgba(255, 245, 230, .92), rgba(245, 249, 255, .94) 44%, rgba(255, 239, 210, .8)),
    linear-gradient(180deg, #fff8ed, #f6f9ff);
}

.candidate-dashboard .soft-kicker {
  color: #9a5b00;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .76rem;
  font-weight: 800;
}

.candidate-hero-3d {
  max-width: 1180px;
  margin: 0 auto 22px;
  min-height: 310px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .8fr);
  gap: 28px;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 34px;
  color: #172033;
  background:
    linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,246,229,.86)),
    linear-gradient(135deg, #fff, #fef3dc);
  box-shadow: 0 30px 80px rgba(134, 86, 18, .18), inset 0 1px 0 rgba(255,255,255,.95);
  border: 1px solid rgba(255, 255, 255, .9);
  transform-style: preserve-3d;
}

.candidate-hero-3d:before {
  content: "";
  position: absolute;
  inset: -38% -12% auto 34%;
  height: 310px;
  background: linear-gradient(135deg, rgba(255, 182, 77, .32), rgba(83, 130, 255, .16));
  transform: rotate(-10deg);
  border-radius: 42px;
}

.candidate-hero-copy {
  position: relative;
  z-index: 1;
}

.candidate-hero-copy h1 {
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  line-height: 1.02;
  font-weight: 900;
  color: #0c2854;
  margin: 10px 0 14px;
}

.candidate-hero-copy p {
  max-width: 680px;
  color: #5b6475;
  font-size: 1.08rem;
}

.hero-action-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.hero-action-row .btn-outline-light {
  background: #ffffff;
  border-color: #9fb5d4;
  color: #123463;
  box-shadow: 0 10px 24px rgba(19, 52, 99, .12);
}

.hero-action-row .btn-outline-light:hover {
  background: #102f64;
  border-color: #102f64;
  color: #ffffff;
}

.candidate-hero-visual {
  position: relative;
  min-height: 260px;
  perspective: 900px;
}

.floating-card {
  position: absolute;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 22px 44px rgba(32, 43, 69, .14);
  backdrop-filter: blur(14px);
  font-weight: 800;
  color: #17325f;
  animation: floatCard 4.8s ease-in-out infinite;
}

.floating-card i {
  color: #f0a21b;
  font-size: 1.45rem;
}

.card-one {
  top: 24px;
  right: 40px;
  transform: rotateY(-12deg) rotateX(8deg);
}

.card-two {
  bottom: 30px;
  left: 10px;
  animation-delay: .8s;
  transform: rotateY(16deg) rotateX(-7deg);
}

.cube-stack {
  position: absolute;
  inset: 66px 70px auto auto;
  width: 150px;
  height: 150px;
  transform: rotateX(58deg) rotateZ(42deg);
  transform-style: preserve-3d;
}

.cube-stack span {
  position: absolute;
  width: 96px;
  height: 96px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffc45b, #fff4d8);
  box-shadow: 24px 24px 45px rgba(131, 83, 20, .18);
  border: 1px solid rgba(255,255,255,.9);
  animation: cubeLift 4.2s ease-in-out infinite;
}

.cube-stack span:nth-child(2) {
  transform: translate3d(34px, 34px, 34px);
  background: linear-gradient(135deg, #8fb8ff, #f8fbff);
  animation-delay: .45s;
}

.cube-stack span:nth-child(3) {
  transform: translate3d(68px, 68px, 68px);
  background: linear-gradient(135deg, #ffe2a6, #ffffff);
  animation-delay: .9s;
}

.dashboard-grid-pro {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.dash-card-pro {
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(255,255,255,.92);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 20px 50px rgba(40, 54, 86, .09);
  position: relative;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
}

.dash-card-pro:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 70px rgba(40, 54, 86, .14);
}

.application-summary { grid-column: span 8; }
.progress-card { grid-column: span 4; }
.next-action-card { grid-column: span 4; background: linear-gradient(135deg, #102f64, #1e5aa8); color: #fff; }
.document-card { grid-column: span 4; }
.assessment-card { grid-column: span 8; }
.timeline-card { grid-column: span 8; }
.activity-card { grid-column: span 5; }
.all-applications-card { grid-column: span 7; }

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.card-head h2,
.dash-card-pro h2 {
  color: #10264d;
  font-size: 1.18rem;
  font-weight: 850;
  margin: 0;
}

.next-action-card h2,
.next-action-card .soft-kicker {
  color: #fff;
}

.next-action-card p {
  color: rgba(255,255,255,.82);
}

.next-action-card > i {
  font-size: 2rem;
  color: #ffc75f;
  margin-bottom: 14px;
  display: inline-block;
}

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

.summary-strip div {
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff8ed, #ffffff);
  border: 1px solid #ffe5b5;
}

.summary-strip span {
  display: block;
  color: #7b8494;
  font-size: .78rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.summary-strip strong {
  color: #10264d;
  overflow-wrap: anywhere;
}

.quick-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.progress-card {
  text-align: center;
}

.progress-ring {
  --progress: 0;
  width: 132px;
  height: 132px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 58%, transparent 59%),
    conic-gradient(#f4a51c calc(var(--progress) * 1%), #e7edf7 0);
  box-shadow: inset 0 10px 24px rgba(255,255,255,.9), 0 18px 40px rgba(244, 165, 28, .18);
}

.progress-ring span {
  font-size: 1.45rem;
  font-weight: 900;
  color: #0d376d;
}

.mini-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  text-align: left;
}

.mini-list span,
.doc-chip {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 11px;
  border-radius: 999px;
  background: #f6f8fc;
  color: #4b5563;
  font-weight: 700;
  font-size: .88rem;
}

.doc-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.doc-chip.missing {
  background: #fff0d7;
  color: #995f00;
}

.doc-chip.ready {
  background: #e7fff1;
  color: #08713e;
}

.stage-track {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}

.stage-item {
  min-height: 92px;
  border-radius: 18px;
  background: #f3f6fb;
  display: grid;
  place-items: center;
  text-align: center;
  color: #7b8494;
  font-weight: 800;
  padding: 10px;
}

.stage-item span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e1e7f0;
  color: #fff;
  margin-bottom: 6px;
}

.stage-item.active {
  background: linear-gradient(180deg, #fff7e8, #ffffff);
  color: #0d376d;
  box-shadow: inset 0 0 0 1px #ffd994;
}

.stage-item.active span {
  background: #f4a51c;
  animation: softPulse 1.9s ease-in-out infinite;
}

.activity-feed {
  display: grid;
  gap: 12px;
}

.activity-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: #f8fafc;
}

.activity-item > i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #eaf2ff;
  color: #1458a8;
}

.activity-item.success > i { background: #e8fff3; color: #096b3d; }
.activity-item.warm > i { background: #fff1d9; color: #a86600; }
.activity-item p { margin: 3px 0; color: #5b6475; }
.activity-item small { color: #8a93a3; }

.empty-state-pro {
  min-height: 140px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #7b8494;
  gap: 5px;
}

.empty-state-pro i {
  font-size: 2.1rem;
  color: #f4a51c;
}

.application-list-pro {
  display: grid;
  gap: 10px;
}

.application-row-pro {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fbfdff, #fff8ef);
  border: 1px solid #eef2f7;
}

.application-row-pro span {
  display: block;
  color: #7b8494;
  font-size: .86rem;
}

@keyframes floatCard {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

@keyframes cubeLift {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.06); translate: 0 -8px; }
}

@keyframes softPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(244, 165, 28, .26); }
  50% { box-shadow: 0 0 0 9px rgba(244, 165, 28, 0); }
}

@media (max-width: 980px) {
  .candidate-hero-3d { grid-template-columns: 1fr; }
  .candidate-hero-visual { display: none; }
  .application-summary,
  .progress-card,
  .next-action-card,
  .document-card,
  .assessment-card,
  .timeline-card,
  .activity-card,
  .all-applications-card { grid-column: 1 / -1; }
  .summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage-track { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .candidate-dashboard { padding: 14px 10px 30px; }
  .candidate-hero-3d { padding: 22px; border-radius: 20px; }
  .candidate-hero-copy h1 { font-size: 2rem; line-height: 1.08; }
  .hero-action-row,
  .quick-action-bar,
  .doc-chip-row { display: grid; grid-template-columns: 1fr; }
  .hero-action-row .btn,
  .quick-action-bar .btn { width: 100%; }
  .summary-strip,
  .application-row-pro { grid-template-columns: 1fr; }
  .stage-track { grid-template-columns: 1fr; }
  .stage-item { min-height: 74px; }
  .dash-card-pro { padding: 16px; border-radius: 18px; }
  .card-head { flex-direction: column; }
  .progress-ring { width: 112px; height: 112px; }
  .application-row-pro .btn { width: 100%; }
}

@media (max-width: 420px) {
  .candidate-hero-3d { padding: 18px; }
  .candidate-hero-copy h1 { font-size: 1.72rem; }
  .dash-card-pro { padding: 14px; }
  .activity-item { grid-template-columns: 36px 1fr; }
  .activity-item > i { width: 36px; height: 36px; }
}
