.dashboard-page {
  text-align: left;
}

.dashboard-head h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.8rem);
}

.dashboard-head p {
  margin: 10px 0 0;
  color: #9aabc9;
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
}

.dashboard-kpis {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-kpi-card {
  border: 1px solid rgba(66, 99, 176, 0.26);
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(16, 24, 54, 0.94), rgba(8, 14, 35, 0.98));
  padding: 18px 16px;
}

.dashboard-kpi-card h3 {
  margin: 0;
  color: #9aabc9;
  font-size: 0.92rem;
  font-weight: 600;
}

.dashboard-kpi-value {
  margin-top: 8px;
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  font-weight: 800;
  color: #66d7ff;
}

.dashboard-kpi-card p {
  margin: 8px 0 0;
  font-size: 0.88rem;
  color: #7f90ad;
}

.dashboard-panels {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-panel {
  border: 1px solid rgba(66, 99, 176, 0.26);
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(16, 24, 54, 0.94), rgba(8, 14, 35, 0.98));
  padding: 18px;
}

.dashboard-panel h3 {
  margin: 0 0 12px;
  font-size: 1.12rem;
}

.dashboard-panel ul {
  display: grid;
  gap: 10px;
}

.dashboard-panel li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.dashboard-panel li span {
  color: #dbe6fb;
}

.dashboard-panel li b {
  color: #8ec7ff;
  font-weight: 600;
}

.dashboard-v2 {
  padding-top: 28px;
  text-align: left;
}

.db-container {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.db-hero {
  border: 1px solid rgba(66, 99, 176, 0.3);
  border-radius: 18px;
  background: linear-gradient(130deg, rgba(72, 136, 243, 0.2), rgba(109, 73, 240, 0.2));
  padding: 26px 24px;
}

.db-hero h1 {
  margin: 0;
  font-size: clamp(1.35rem, 1.8vw, 1.75rem);
  font-weight: 800;
}

.db-hero p {
  margin: 8px 0 0;
  color: #9aabc9;
}

.db-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.db-stat {
  border: 1px solid rgba(66, 99, 176, 0.3);
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(16, 24, 54, 0.94), rgba(8, 14, 35, 0.98));
  min-height: 180px;
  padding: 28px 26px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.db-stat-featured {
  background: linear-gradient(135deg, #4f8ff8, #6f52f2);
  border-color: rgba(111, 155, 247, 0.7);
}

.db-stat:hover {
  border-color: rgba(69, 215, 255, 0.75);
  box-shadow: 0 0 0 1px rgba(69, 215, 255, 0.2), 0 14px 34px rgba(7, 19, 52, 0.55);
  transform: translateY(-2px);
}

.db-stat-label {
  margin: 0;
  color: #90a2c2;
  font-size: clamp(0.85rem, 0.95vw, 1rem);
  font-weight: 600;
}

.db-stat-value {
  margin: 10px 0 0;
  font-size: 1.875rem;
  font-weight: 800;
  line-height: 1;
}

.db-stat-meta {
  margin: 10px 0 0;
  color: #8ea0c1;
  font-size: clamp(0.8rem, 0.9vw, 0.92rem);
}

.db-stat-sub {
  margin: 10px 0 0;
  color: #99abcb;
  font-size: clamp(0.8rem, 0.9vw, 0.92rem);
  font-weight: 500;
}

.db-stat-sub span {
  color: #2ee39b;
  font-weight: 700;
}

.db-stat-icon {
  width: 62px;
  height: 62px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  font-size: 1.5rem;
  background: linear-gradient(140deg, #4f8ff8, #8450f2);
  box-shadow: 0 0 24px rgba(82, 130, 243, 0.35);
}

.db-grid {
  display: grid;
  grid-template-columns: 1.75fr 1fr;
  gap: 20px;
}

.db-card {
  border: 1px solid rgba(66, 99, 176, 0.3);
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(16, 24, 54, 0.94), rgba(8, 14, 35, 0.98));
  padding: 30px 30px 26px;
}

.db-card-head {
  margin-bottom: 18px;
}

.db-card-head h3 {
  margin: 0;
  font-size: clamp(1.35rem, 1.6vw, 1.875rem);
  font-weight: 800;
}

.db-head-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.db-chart {
  border-radius: 14px;
  border: 1px solid rgba(66, 99, 176, 0.28);
  background: rgba(7, 13, 32, 0.72);
  padding: 16px 12px 14px;
}

.db-chart-svg {
  width: 100%;
  height: 350px;
  display: block;
}

.db-chart-svg .grid line {
  stroke: rgba(63, 93, 164, 0.35);
  stroke-dasharray: 6 6;
  stroke-width: 1;
}

.db-days {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  text-align: center;
  color: #94a8cb;
  font-size: clamp(0.82rem, 0.9vw, 0.95rem);
}

.line-score {
  fill: none;
  stroke: url(#lineBlue);
  stroke-width: 4;
}

.line-points {
  fill: none;
  stroke: url(#lineCyan);
  stroke-width: 4;
  stroke-dasharray: 12 10;
}

.dots-score circle {
  fill: #4f8ff8;
}

.dots-points circle {
  fill: #45d7ff;
}

.db-legend {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 26px;
  color: #9bb0cf;
  font-size: clamp(0.8rem, 0.9vw, 0.95rem);
}

.db-legend span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  display: inline-block;
}

.legend-dot.progress {
  background: #4f8ff8;
}

.legend-dot.points {
  background: #45d7ff;
}

.db-ranking {
  display: grid;
  gap: 14px;
}

.db-ranking li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  padding: 14px 16px;
}

.db-ranking li.me {
  border: 1px solid rgba(61, 213, 243, 0.45);
  background: rgba(61, 213, 243, 0.08);
}

.rank-user {
  display: flex;
  align-items: center;
  gap: 14px;
}

.rank-pos {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(17, 32, 66, 0.9);
  color: #8ea8cf;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
}

.rank-pos.gold {
  background: #ffb20f;
  color: #071126;
}

.rank-pos.me {
  background: rgba(61, 213, 243, 0.2);
  color: #45d7ff;
}

.rank-user strong {
  display: block;
  color: #eaf0fc;
  font-size: clamp(1rem, 1.1vw, 1.2rem);
  line-height: 1.1;
}

.rank-user small {
  display: block;
  margin-top: 3px;
  color: #97accd;
  font-size: clamp(0.75rem, 0.82vw, 0.9rem);
}

.db-ranking li b {
  min-width: 74px;
  text-align: center;
  border-radius: 999px;
  background: linear-gradient(90deg, #7653f3, #8a40ec);
  color: #45d7ff;
  font-size: clamp(0.82rem, 0.9vw, 0.95rem);
  font-weight: 800;
  padding: 8px 10px;
}

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

.db-continue {
  border: 1px solid rgba(66, 99, 176, 0.3);
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(16, 24, 54, 0.94), rgba(8, 14, 35, 0.98));
  padding: 30px 30px 26px;
}

.db-continue .db-card-head {
  margin-bottom: 18px;
}

.db-continue .db-head-inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.db-continue .db-card-head h3 {
  margin: 0;
  min-width: 0;
  font-size: clamp(1.5rem, 1.7vw, 2rem);
  line-height: 1.1;
}

.db-view-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  min-width: 132px;
  padding: 0 20px;
  border-radius: 14px;
  border: 1px solid rgba(56, 78, 140, 0.55);
  background: rgba(3, 10, 29, 0.96);
  color: #e8edf8;
  font-size: clamp(0.95rem, 1vw, 1.05rem);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.db-view-all:hover {
  background: rgba(8, 20, 52, 0.98);
}

.db-continue .course-card {
  border: 1px solid rgba(66, 99, 176, 0.3);
  border-radius: 24px;
  background: linear-gradient(165deg, rgba(16, 24, 54, 0.94), rgba(8, 14, 35, 0.98));
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transform: translateY(0);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.db-continue .course-card:hover,
.db-continue .course-card:focus-within {
  border-color: rgba(69, 215, 255, 0.75);
  box-shadow: 0 0 0 1px rgba(69, 215, 255, 0.24), 0 16px 38px rgba(7, 19, 52, 0.58);
  transform: translateY(-2px);
}

.db-continue .course-media {
  height: 250px;
  border-bottom: 1px solid rgba(66, 99, 176, 0.3);
  background: linear-gradient(160deg, rgba(28, 45, 92, 0.45), rgba(4, 13, 34, 0.95));
  overflow: hidden;
}

.db-continue .course-media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    #4f8ff8 0%,
    #8a40ec var(--db-progress, 0%),
    rgba(56, 78, 140, 0.25) var(--db-progress, 0%)
  );
}

.db-continue .course-level {
  top: 18px;
  right: 18px;
  left: auto;
  bottom: auto;
  font-size: 0.85rem;
}

.db-continue .course-level.beginner {
  color: #1fbe67;
  background: rgba(12, 78, 43, 0.45);
  border-color: rgba(30, 178, 102, 0.45);
}

.db-continue .course-level.intermediate {
  color: #ffc95d;
  background: rgba(120, 74, 10, 0.4);
  border-color: rgba(255, 184, 71, 0.45);
}

.db-continue .course-level.advanced {
  color: #d44a4a;
  background: rgba(99, 24, 36, 0.45);
  border-color: rgba(184, 63, 78, 0.45);
}

.db-continue .course-area {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(3, 10, 29, 0.9);
  color: #c6d4ef;
  font-size: 0.95rem;
  font-weight: 600;
}

.db-continue .course-content {
  padding: 22px 26px 24px;
}

.db-continue .course-title {
  font-size: clamp(1.6rem, 1.75vw, 2rem);
  color: #e8edf8;
}

.db-continue .course-desc {
  margin-top: 14px;
  font-size: clamp(1rem, 1.05vw, 1.15rem);
  color: #9bb0cf;
}

.db-continue .course-meta {
  margin-top: 14px;
  gap: 20px;
}

.db-continue .meta-item {
  font-size: clamp(0.95rem, 1vw, 1.08rem);
  color: #9bb0cf;
}

.db-continue .meta-rating {
  color: #ffc14f;
  font-weight: 700;
}

.db-progress-row {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.db-progress-row span {
  color: #90a2c2;
  font-size: clamp(0.95rem, 1vw, 1.05rem);
}

.db-progress-row b {
  color: #3dd5f3;
  font-size: clamp(1rem, 1.1vw, 1.2rem);
  font-weight: 700;
}

.db-course-action {
  margin-top: 10px;
  width: 100%;
  height: 58px;
  border-radius: 14px;
  border: 1px solid rgba(98, 130, 214, 0.45);
  background: linear-gradient(90deg, #4f8ff8, #8a40ec);
  color: #08142f;
  font-size: clamp(1.05rem, 1.1vw, 1.2rem);
  font-weight: 700;
  cursor: pointer;
}

.db-course-action:hover {
  filter: brightness(1.05);
}

.db-course-actions {
  margin-top: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.db-course-actions .db-course-action {
  margin-top: 0;
}

.db-course-secondary-action {
  height: 58px;
  border-radius: 14px;
  border: 1px solid rgba(98, 130, 214, 0.32);
  background: rgba(7, 16, 40, 0.92);
  color: #dbe6fb;
  font-size: 0.98rem;
  font-weight: 700;
  padding: 0 16px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .dashboard-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .dashboard-v2 {
    padding-top: 20px;
  }

  .db-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .db-card {
    padding: 22px 18px;
  }

  .db-continue {
    padding: 22px 18px;
  }

  .db-stat {
    min-height: 154px;
    padding: 20px 18px;
  }

  .db-chart-svg {
    height: 250px;
  }

  .db-courses {
    grid-template-columns: 1fr;
  }

  .db-continue .db-head-inline {
    flex-direction: column;
    align-items: stretch;
  }

  .db-continue .db-card-head h3 {
    min-width: 0;
  }

  .db-view-all {
    height: 50px;
    border-radius: 14px;
  }

  .db-continue .course-media {
    height: 200px;
  }

  .db-course-action {
    height: 50px;
    border-radius: 14px;
  }
}
