/* ─── Background — réplica fiel das ellipses do V1 (1px = 1/1920 × 100vw) ── */
.bg-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}
.bg-glow > div { position: absolute; border-radius: 50%; }

.bg-e6 {
  width: 167vw; height: 77vw;
  top: 2.8vw;  left: -102vw;
  transform: rotate(6.2deg);
  background: radial-gradient(50% 50% at 50% 50%, rgba(116,0,0,.36) 0%, transparent 100%);
}
.bg-e2 {
  width: 205vw; height: 73vw;
  top: 14.2vw; left: -109vw;
  transform: rotate(-23.2deg);
  background: radial-gradient(50% 50% at 50% 50%, rgba(242,14,9,.34) 0%, transparent 100%);
}
.bg-e {
  width: 167vw; height: 73vw;
  top: 21.7vw; left: 22.7vw;
  transform: rotate(6.2deg);
  background: radial-gradient(50% 50% at 50% 50%, rgba(242,14,9,.34) 0%, transparent 100%);
}
.bg-e4 {
  width: 167vw; height: 77vw;
  top: 2.8vw;  left: 27.9vw;
  transform: rotate(6.2deg);
  background: radial-gradient(50% 50% at 50% 50%, #fd7222 0%, transparent 100%);
}

/* ─── Nav — largura extra pra caber o widget de usuário ──────── */
.dash-nav { grid-template-columns: 235px minmax(0, 1fr) auto; }

.dash-user {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-self: end;
}

.dash-notification {
  position: relative;
  display: flex;
  width: 23px;
  flex-shrink: 0;
}
.dash-notification img { width: 100%; height: 27px; }
.dash-notification-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fc5a5a;
}

.dash-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}

.dash-user-info {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  white-space: nowrap;
  cursor: pointer;
}
.dash-user-name {
  font-family: var(--font-poppins);
  font-weight: 600;
  font-size: 14px;
  color: #fafafb;
}
.dash-user-role {
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  color: #696974;
}

.dash-dropdown { width: 12px; height: 7.5px; flex-shrink: 0; }

.dash-user-menu { position: relative; }
.dash-dropdown-toggle {
  display: flex;
  align-items: center;
  padding: 8px 0 8px 8px;
}

.dash-user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 140px;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 8px;
  z-index: 10;
}
.dash-user-menu.open .dash-user-dropdown { display: block; }

.dash-dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  font-family: var(--font-poppins);
  font-size: 14px;
  color: var(--white);
  white-space: nowrap;
}
.dash-dropdown-item:hover { background: rgba(255,255,255,0.08); }
.dash-dropdown-item.is-disabled {
  color: rgba(255,255,255,0.35);
  cursor: not-allowed;
}
.dash-dropdown-item.is-disabled:hover { background: none; }

/* ─── Seção ──────────────────────────────────────────────────── */
.dash-section {
  position: relative;
  padding-block: 60px 100px;
}

.dash-deco-left {
  position: absolute;
  left: -8%;
  top: 250px;
  width: clamp(160px, 20vw, 340px);
  pointer-events: none;
  user-select: none;
}
.dash-deco-right {
  position: absolute;
  right: -14%;
  top: 480px;
  width: clamp(200px, 26vw, 460px);
  pointer-events: none;
  user-select: none;
}

.dash-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  align-items: start;
}

.dash-title {
  font-family: var(--font-montserrat);
  font-weight: 600;
  font-size: 44px;
  color: var(--white);
  margin-bottom: 32px;
}

/* ─── Cards de estatística ───────────────────────────────────── */
.dash-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
}

/* ─── Ações ──────────────────────────────────────────────────── */
.dash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 40px;
  background: var(--gradient-btn);
  border-radius: 16px;
  font-family: var(--font-montserrat);
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
  white-space: nowrap;
  transition: opacity .2s;
}
.btn-primary:hover { opacity: .85; }

.btn-primary:disabled,
.btn-primary.is-disabled {
  opacity: .5;
  cursor: not-allowed;
  pointer-events: none;
}
.btn-primary:disabled:hover,
.btn-primary.is-disabled:hover { opacity: .5; }

.dash-actions .btn-primary {
  flex: 0 0 220px;
  padding: 20px 0;
  text-align: center;
}

/* ─── Card de perfil / ranking ───────────────────────────────── */
.dash-profile-card {
  position: relative;
  background: rgba(0,0,0,0.53);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
}

.dash-profile-edit {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 20px;
}
.dash-profile-edit img { width: 100%; height: 16.6px; }

.dash-profile-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--orange);
  margin: 0 auto 20px;
}

.dash-profile-name {
  font-family: var(--font-poppins);
  font-weight: 600;
  font-size: 16px;
  color: #fafafb;
  margin-bottom: 4px;
}

.dash-profile-role {
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  color: #92929d;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #44444f;
}

.dash-profile-summary {
  display: flex;
  justify-content: flex-start;
  gap: 40px;
  margin-bottom: 20px;
  text-align: left;
}
.dash-profile-summary-item,
.dash-profile-position {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dash-profile-position { margin-bottom: 28px; text-align: left; }

.dash-profile-value {
  font-family: var(--font-poppins);
  font-weight: 500;
  font-size: 14px;
  color: #fafafb;
}
.dash-profile-label {
  font-family: var(--font-poppins);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #fafafb;
}

.dash-ranking {
  text-align: left;
}
.dash-ranking + .dash-ranking {
  margin-top: 28px;
}
.dash-ranking-label {
  font-family: var(--font-poppins);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #fafafb;
  margin-bottom: 16px;
}
.dash-ranking ol { display: flex; flex-direction: column; gap: 14px; }
.dash-ranking li {
  display: flex;
  gap: 10px;
  font-family: var(--font-poppins);
  font-weight: 500;
  font-size: 14px;
  color: #fafafb;
}
.dash-ranking li span { color: #696974; min-width: 20px; }
.dash-ranking li .dash-ranking-badges {
  margin-left: auto;
  min-width: 0;
  font-size: 12px;
  white-space: nowrap;
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .dash-grid { grid-template-columns: 1fr; }
  .dash-profile-card { order: -1; }
  .dash-deco-left, .dash-deco-right { display: none; }
}

/* Alinhado ao breakpoint de nav mobile do global.css (768px) */
@media (max-width: 768px) {
  .dash-nav { grid-template-columns: auto 1fr; }
  .dash-user { display: none; }
}

@media (max-width: 640px) {
  .dash-actions .btn-primary { flex: 1 1 100%; }
}
