.project-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;

  background:
    linear-gradient(rgba(6, 9, 16, 0.45), rgba(6, 9, 16, 0.82)),
    url("../img/redm-bg.png") center/cover no-repeat;
}

.project-hero .hero-content{
  display:flex;
  flex-direction:column;
  gap:20px;
  align-items:flex-start;
  max-width:650px;
}

.project-hero .hero-badge{
  display:inline-block;
  width:fit-content;
}

.project-hero .hero-buttons{
  display:flex;
  gap:14px;
  margin-top:5px;
}

.rules-grid {
  display: grid;
  gap: 20px;
}

.rule-card {
  border: 1px solid var(--border);
  background: var(--panel);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.rule-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 22px 24px;

  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);

  cursor:pointer;
}

.rule-content {
  display: none;
  padding: 0 24px 24px;
}

.rule-content p {
  color: var(--muted);
}

.dropdown-rule.active .rule-content {
  display: block;
}

.user-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: 0.25s ease;
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.user-profile-link:hover {
  background: rgba(255, 255, 255, 0.05);
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.user-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(177, 18, 38, 0.18);
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
}

.user-name {
  font-weight: 600;
  white-space: nowrap;
}