/* =========================================
   USER DASHBOARD - CAPTAIN PRO
========================================= */

.cpl-dashboard-wrapper {
  max-width: 1100px;
  margin: 24px auto;
  color: #fff;
  font-family: Arial, sans-serif;
}

.cpl-dash-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  background: linear-gradient(135deg, #0b1020, #131a2d);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 22px 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  margin-bottom: 18px;
}

.cpl-dash-hero-left h2 {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 900;
  color: #ffd700;
}

.cpl-dash-hero-left p {
  margin: 0;
  color: #b9c0d0;
  font-size: 14px;
}

.cpl-rank-orb {
  min-width: 120px;
  min-height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffd700, #a67c00);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #111;
  box-shadow: 0 0 20px rgba(255,215,0,0.35);
}

.cpl-rank-orb span {
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.cpl-rank-orb label {
  font-size: 13px;
  font-weight: 800;
  margin-top: 6px;
}

.cpl-dash-stats-grid {
  display: grid;
  
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.cpl-dash-card {
  border-radius: 18px;
  padding: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.08);
}

.cpl-card-gold   { background: linear-gradient(135deg, #2a2100, #4d3c00); }
.cpl-card-blue   { background: linear-gradient(135deg, #0d274d, #153f75); }
.cpl-card-green  { background: linear-gradient(135deg, #0c3321, #145635); }
.cpl-card-purple { background: linear-gradient(135deg, #2b1746, #4d2877); }

.cpl-dash-card-value {
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
}

.cpl-dash-card-label {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  font-weight: 700;
}

.cpl-dash-progress-box {
  background: #101727;
  border-radius: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 18px;
}

.cpl-dash-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-weight: 800;
  color: #dfe7f8;
}

.cpl-dash-progress-bar {
  height: 12px;
  width: 100%;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  overflow: hidden;
}

.cpl-dash-progress-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffd700, #f5b700);
}

.cpl-dash-progress-foot {
  margin-top: 8px;
  color: #bfc7d8;
  font-size: 13px;
}

.cpl-dash-main-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 16px;
}

.cpl-dash-panel {
  background: #0f1422;
  border-radius: 18px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 24px rgba(0,0,0,0.22);
}

.cpl-dash-panel-head {
  margin-bottom: 14px;
}

.cpl-dash-panel-head h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  color: #fff;
}

.cpl-next-match-card {
  display: block;
  text-decoration: none;
  background: linear-gradient(135deg, #161e33, #1c2742);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 18px;
  color: #fff;
  transition: transform .18s ease, box-shadow .18s ease;
}

.cpl-next-match-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.28);
}

.cpl-next-stage {
  display: inline-block;
  background: #ffd700;
  color: #111;
  font-weight: 900;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.cpl-next-match-id {
  font-size: 15px;
  font-weight: 800;
  color: #c9d3eb;
  margin-bottom: 16px;
}

.cpl-next-teams {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.cpl-next-team {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 900;
  color: #ffd166;
}

.cpl-next-team img {
  width: 44px;
  height: 30px;
  border-radius: 6px;
  object-fit: cover;
}

.cpl-next-vs {
  font-size: 14px;
  color: #fff;
  font-weight: 800;
}

.cpl-next-date {
  font-size: 14px;
  color: #b8c1d5;
  margin-bottom: 16px;
}

.cpl-next-cta {
  display: inline-block;
  background: linear-gradient(145deg, #ffd700, #d2a800);
  color: #111;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 900;
}

.cpl-recent-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cpl-recent-item {
  background: #161d2d;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 14px;
}

.cpl-recent-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.cpl-recent-match {
  color: #d7dff0;
  font-size: 13px;
  font-weight: 800;
}

.cpl-recent-points {
  background: #ffd700;
  color: #111;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.cpl-recent-teams {
  font-size: 14px;
  color: #fff;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.6;
}

.cpl-recent-teams strong {
  color: #ffd166;
}

.cpl-recent-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #aeb7ca;
  font-size: 12px;
}

.cpl-recent-joker {
  color: #ffd700;
  font-weight: 900;
}

.cpl-empty-state {
  background: #151c2b;
  border: 1px dashed rgba(255,255,255,0.13);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}

.cpl-empty-state h4 {
  margin: 0 0 8px;
  font-size: 20px;
  color: #fff;
}

.cpl-empty-state p {
  margin: 0;
  color: #b5bfd4;
  font-size: 14px;
}

.cpl-dash-login-box {
  background: #101727;
  border-radius: 18px;
  padding: 28px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.08);
}

.cpl-dash-login-box h3 {
  margin: 0 0 10px;
  color: #fff;
}

.cpl-dash-login-box p {
  margin: 0;
  color: #c0c8d9;
}

@media (max-width: 920px) {
  .cpl-dash-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cpl-dash-main-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .cpl-dash-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .cpl-rank-orb {
    min-width: 96px;
    min-height: 96px;
  }

  .cpl-rank-orb span {
    font-size: 24px;
  }

  .cpl-dash-stats-grid {
    grid-template-columns: 1fr;
  }

  .cpl-next-teams {
    flex-direction: column;
  }

  .cpl-next-team {
    font-size: 16px;
  }
}
/* =========================================
   ✅ FORCE LEFT ALIGN DASHBOARD
========================================= */

.cpl-dashboard-wrapper {
  text-align: left !important;
  direction: ltr !important;
}

/* كل النصوص */
.cpl-dashboard-wrapper h1,
.cpl-dashboard-wrapper h2,
.cpl-dashboard-wrapper h3,
.cpl-dashboard-wrapper h4,
.cpl-dashboard-wrapper p,
.cpl-dashboard-wrapper span,
.cpl-dashboard-wrapper label {
  text-align: left !important;
}

/* الهيدر */
.cpl-dash-hero {
  text-align: left !important;
  align-items: flex-start !important;
}

/* الكروت */
.cpl-dash-stats-grid {
  text-align: left !important;
}

.cpl-dash-card {
  text-align: left !important;
}

.cpl-dash-card-value {
  text-align: left !important;
}

.cpl-dash-card-label {
  text-align: left !important;
}

/* البروجريس */
.cpl-dash-progress-box {
  text-align: left !important;
}

.cpl-dash-progress-head {
  text-align: left !important;
}

/* Next match */
.cpl-next-match-card {
  text-align: left !important;
}

.cpl-next-stage,
.cpl-next-match-id,
.cpl-next-date,
.cpl-next-cta {
  text-align: left !important;
}

/* الفرق */
.cpl-next-teams {
  justify-content: flex-start !important;
}

.cpl-next-team {
  justify-content: flex-start !important;
}

/* Recent */
.cpl-recent-item {
  text-align: left !important;
}

.cpl-recent-top {
  justify-content: space-between;
}

.cpl-recent-teams {
  text-align: left !important;
}

.cpl-recent-meta {
  text-align: left !important;
}
/* ===== BONUS DASHBOARD ===== */

.cpl-dash-bonus {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.cpl-dash-bonus-item {
    background: linear-gradient(180deg,#11182e,#0b1020);
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    min-width: 200px;
}

.cpl-dash-bonus-label {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 6px;
}

.cpl-dash-bonus-value {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 900;
    font-size: 18px;
    color: #facc15;
}

.cpl-dash-flag {
    width: 26px;
    height: 18px;
    border-radius: 3px;
}

.cpl-dash-ball {
    font-size: 18px;
}
/* ===== BONUS UPGRADE ===== */

.cpl-bonus-flex {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ✅ صحيح */
.cpl-bonus-correct {
  box-shadow: 0 0 15px rgba(34,197,94,0.6);
  border-color: rgba(34,197,94,0.4);
}

/* ❌ غلط */
.cpl-bonus-wrong {
  box-shadow: 0 0 15px rgba(239,68,68,0.4);
  border-color: rgba(239,68,68,0.3);
}

/* ⭐ / ❌ */
.cpl-bonus-result {
  margin-left: 6px;
  font-size: 18px;
}

/* نقاط */
.cpl-bonus-points {
  margin-left: 10px;
  color: #facc15;
  font-weight: 900;
}

/* ضبط العلم */
.cpl-dash-flag {
  width: 26px;
  height: 18px;
  border-radius: 3px;
}
@media (max-width: 768px) {

    .cpl-leaderboard-top {
        display: flex;
        flex-direction: column; /* يخليهم فوق بعض */
        align-items: center;
        gap: 15px;
    }

    /* ترتيب العناصر */
    .rank-1 {
        order: 1;
    }

    .rank-2 {
        order: 2;
    }

    .rank-3 {
        order: 3;
    }

    /* تصغير الكروت */
    .cpl-leaderboard-card {
        width: 100%;
        max-width: 300px;
    }

}
